Files
datafusion/docs/source/user-guide/cli/overview.md
T
Andrew Lamb 0573f78c7e Update datafusion-cli docs, split up (#10078)
* Update datafusion-cli docs, split up

* remove PiPI instructions
2024-04-16 07:58:16 -06:00

1.7 KiB

Overview

DataFusion CLI (datafusion-cli) is an interactive command-line utility for executing SQL queries against any supported data files.

While intended as an example of how to use DataFusion, datafusion-cli offers a full range of SQL and support reading and writing CSV, Parquet, JSON, Arrow and Avro, from local files, directories, or remote locations such as S3.

Here is an example of how to run a SQL query against a local file, hits.parquet:

$ datafusion-cli
DataFusion CLI v37.0.0
> select count(distinct "URL") from 'hits.parquet';
+----------------------------------+
| COUNT(DISTINCT hits.parquet.URL) |
+----------------------------------+
| 18342019                         |
+----------------------------------+
1 row(s) fetched.
Elapsed 1.969 seconds.

For more information, see the Installation, Usage Guide and Data Sources sections.