Quack quack, DuckDB Snippets has hatched!

Share and vote for your favorites with the DuckDB community. Currently we support SQL, Bash, R, Python with more to come. Reach out if you have any questions or feedback.

Quickly convert a CSV to Parquet, bash functionBash

Mehdi Ouazza's photo
Mehdi Ouazza

Copy code

Expand

Share link

Query the Output of Another ProcessBash

Mark Roddy's photo
Mark Roddy

Copy code

Expand

Share link

Filter column names using a patternSQL

Octavian Zarzu's photo
Octavian Zarzu

Copy code

Expand

Share link

Parse a File in an Unsupported FormatSQL

Mark Roddy's photo
Mark Roddy

Copy code

Expand

Share link

Select a sample of rows from a tableSQL

Ryan Boyd's photo
Ryan Boyd

Copy code

Expand

Share link

SUMMARIZESQL

Carlo Piovesan's photo
Carlo Piovesan

Copy code

Expand

Share link

Select all columns except a fewSQL

Ryan Boyd's photo
Ryan Boyd

Copy code

Expand

Share link

Download CSV and convert to ParquetSQL

Ryan Boyd's photo
Ryan Boyd

Copy code

Expand

Share link