Re:Pipe Syntax in SQL
by richbell on Sunday August 25, 2024 @12:11PM
(#41348414)
Which one?
[ Parent
| on HN ]
#!/bin/bash
function csv_to_parquet() {
file_path="$1"
duckdb -c "COPY (SELECT * FROM read_csv_auto('$file_path')) TO '${file_path%.*}.parquet' (FORMAT PARQUET);" }