Category : apache-arrow

Here is a cmake snippet that I use to link to libpqxx library that is installed by vcpkg and try to use the apache-arrow that is installed by brew. find_package(libpqxx REQUIRED) target_link_libraries(database PRIVATE libpqxx::pqxx) find_package(Arrow CONFIG REQUIRED PATHS /usr/local/lib/cmake/arrow NO_DEFAULT_PATH) find_package(Parquet CONFIG REQUIRED PATHS /usr/local/lib/cmake/arrow NO_DEFAULT_PATH) target_link_libraries(database PRIVATE arrow_shared parquet_shared) To run it I use: ..

Read more

I had written c++ code to read feather file and insert the data into a arrow::Table, but it gives segmentation fault if the file contains any column with datatype arrow::large_utf8. It gives segfault for this datatype only, there are no errors for utf8/int/float datatype. I think there is something wrong with the feather API implementation ..

Read more

I’m trying to compile the examples under cpp starting with minimal_build. I don’t have much cmake experience. Must this be run under docker, or can it just be compiled in a Linux shell? I’m running Centos7 on a AWS EC2 instance, and I’ve installed cmake 3.20.2. Executing sudo ./run.sh, errors immediately with "cd: /io: No ..

Read more

I’m trying to use arrow-cpp to build a Table then transfer it back to python. In order to do that, I need to call arrow::py::import_pyarrow() beforehand, but this will cause a SEGFAULT. Can anyone help to find where I did wrong? here is a minimal example CMakeLists.txt cmake_minimum_required(VERSION 3.20.0) project(TEST) set(CMAKE_CXX_STANDARD 17) set(Python3_EXECUTABLE "/home/auderson/miniconda3/bin/python3.8") list(APPEND ..

Read more