Skip to content

amoeba/arrow-cpp-csv-examples

Repository files navigation

arrow-cpp-csv-examples

Short demonstrations of using Arrow's two methods of reading in CSV file as Arrow Data:

  1. TableReader
  2. StreamingReader

Written up mostly as an example for myself but may be useful for others. See the Arrow C++ docs for more information.

Running

Pre-requisites

  • pkg-config (brew install pkg-config)
  • A >=C++11 compiler (e.g., clang 14)
  • Arrow C++ headers (brew install apache-arrow)

Compile

A Makefile is provided to make compiling both examples a single command:

make

Run

  • TableReader:

    ./table_reader_example
  • StreamingReader:

    ./streaming_reader_example

About

Short demonstration of Apache Arrow's CSV readers

Topics

Resources

Stars

Watchers

Forks