DataFusion CLI

Overview

qianmoQqianmoQ· 更新于 2026-09-22· 阅读 3 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

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.

评论

登录后参与评论

正在加载评论…