Arrow adapter
Note: Arrow Adapter is an experimental feature; changes in public API and usage are expected.
Overview
Calcite’s adapter for Apache Arrow is able to read and process data in Arrow format using SQL.
It can read files in Arrow’s
Feather format
(which generally have a .arrow
suffix) in the same way that the
File Adapter can read .csv
files.
A simple example
Let’s start with a simple example. First, we need a model definition, as follows.
The model file is stored as arrow/src/test/resources/arrow-model.json
,
so you can connect via sqlline
as follows:
The arrow
directory contains a file called test.arrow
, and so it shows up as
a table called test
.