Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Connecting C++ and Apache DataFusion with ADBC

Instructions

Prerequisites

  1. Install Pixi

  2. Install dbc

Connect to DataFusion

  1. Install the DataFusion ADBC driver:

    dbc install --level user datafusion
  2. Customize the C++ program main.cpp as needed

    • Change the SQL SELECT statement in AdbcStatementSetSqlQuery(), or keep it set to SELECT * FROM 'games.parquet'; to query the Parquet file included with this example
  3. Build and run the C++ program:

    Using Make:

    pixi run make
    ./datafusion_demo

    Or using CMake:

    pixi run cmake -B build
    pixi run cmake --build build
    ./build/datafusion_demo

Clean up

  1. Clean build artifacts:

    Using Make:

    pixi run make clean

    Using CMake:

    rm -rf build