Category : apache-arrow-cpp

I’m trying to write an Apache Arrow table to a string. My big example has problems and I can’t get this little example to work. This one segfaults inside of Arrow in the WriteTable call. My bigger example doesn’t appear to serialize correctly. #include <arrow/api.h> #include <arrow/io/memory.h> #include <arrow/ipc/api.h> std::shared_ptr<arrow::Table> makeSimpleFakeArrowTable() { std::vector<std::shared_ptr<arrow::Field>> arrowFields; arrowFields.emplace_back(std::make_shared<arrow::Field>("Field1", ..

Read more

Example: Let’s say a table name user has id, name, email, phone, and is_active as attributes. And there are 1000s of users part of this table. I would like to read the details per user. void ParquetReaderPlus::read_next_row(long row_group_index, long local_row_num) { std::vector<int> columns_to_tabulate(this->total_row); for (int idx = 0; idx < this->total_row; idx++) columns_to_tabulate[idx] = idx; ..

Read more