Polars releases a command-line tool for SQL on files
Polars CLI lets shell scripts and AI agents inspect column types, pipe results as CSV and get hints when a query fails.
Polars released version 0.10.0 of its standalone command-line tool for running SQL directly on data files through the Polars query engine. Shell scripts and AI agents can use the compiled polars executable to query files without a Python runtime or a database server.
Scripts can pass SQL inline with -c, load it from a file with -f or pipe it in through standard input. A DESCRIBE query lists a file’s column names and data types. With --format csv, the tool writes results to standard output so another command can read them or the shell can save them to a file.
The built-in polars --help text shows how to query a file by putting its path in single quotes where SQL would ordinarily take a table name. It also documents SHOW FUNCTIONS for listing supported SQL functions and LIKE for filtering that list.
A release test checks that the tool flags an unsupported LEN call and suggests LENGTH. The test expects the line and column in a message on standard error and an exit status of 1, so a script can detect the failure separately from CSV output.
The tool reads Parquet, CSV, newline-delimited JSON and Arrow IPC from local files or supported remote locations. Polars lists Delta Lake and Iceberg tables, Excel files and database scanning as planned additions. The release documentation says this version drops the earlier CLI’s interactive shell and replaces its -o output flag with --format.
The polars-cli package is available on PyPI, and Polars offers platform-specific archives on GitHub.
More news

Snowflake previews orphan file cleanup for managed Iceberg tables on S3

ClickHouse makes Amazon S3 Tables support generally available in ClickHouse Cloud

ClickHouse 26.11 switches its default JOIN optimizer and adds Vortex support
