Columnar Data Exchange with Apache Arrow Flight versus JDBC and CSV

How fast can query results move from one service into another program? The same results - TPC-H lineitem (6,001,215 rows) and the NYC taxi trips of January 2024 (2,964,624 rows), seven queries from 4 rows to the whole table - were moved into a fresh client process in six ways: CSV text over HTTP and Arrow Flight (one and four streams) from an Apache DataFusion 55.0.0 service, and JDBC (Java), a Python DB-API driver (psycopg2) and ADBC from PostgreSQL 18.7. Each run ends with the whole result as typed columns in memory; transfer time, CPU, memory and bytes on the wire are measured, and every answer is checked against DuckDB. Web application on port 9217.

NOTE: Public data (TPC-H lineitem from the standard generator, NYC taxi trip records); every exchange path moves the same query results into a fresh client process and every answer is checked against DuckDB; client and services run on a standard laptop over the loopback interface, not across a network.

Category: Big Data

Big Data Project BD17 from ProTechSC Academy, with graphical abstract, video demonstration and project guidance.