Skip to content

skippr query

Run a read-only SQL query against the destination configured on the pipeline's data_sink. The destination is the same data_sinks plugin object used by skippr sync and skippr model. Only SELECT / WITH statements are accepted.

Usage

bash
skippr [--config <path>] query --pipeline <name> --sql '<SQL>' [--output json|jsonl]

Flags

FlagDescription
--pipeline <name>Pipeline whose data_sink should execute the query.
--sql <SQL>Read-only SQL. Only SELECT / WITH queries are accepted.
--output jsonJSON result (default).
--output jsonlJSON lines.

Example

bash
skippr query --pipeline mssql-migration --sql 'SELECT COUNT(*) FROM RAW.CUSTOMERS'

Athena, Snowflake, BigQuery, Postgres, and the other warehouse sinks all query from their data_sinks fields. Iceberg pipelines query through query_engine on the Iceberg sink (type: athena), not a separate Athena block.

See also