Custom SQL
Sling allows you to use custom DuckDB SQL statements to read from files, giving you more control over the data ingestion process. This is particularly useful when you need to perform transformations or filtering during the read operation.
CLI Flags Examples
Full Refresh Mode
In the example below, when we specify the source connection aws_s3
, sling will auto-inject the necessary secrets for proper auth.
Incremental Mode
Replication Configuration
You can also use DuckDB SQL in your replication configuration:
Features
SQL Functions: Access to DuckDB's rich SQL function library
File Format Support: Works with CSV, Parquet, JSON, and other formats supported by DuckDB
Aggregations: Perform aggregations and transformations during read
Joins: Join data from multiple files
Filtering: Apply filters to reduce data transfer
Type Casting: Use SQL CAST functions for type conversions
Notes
Use DuckDB's
read_*
functions to specify input files
Last updated