Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by richbell

1 year ago

Which one?

2 comments

richbell

Reply

xigoi  1 year ago

  #!/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);" }

  • richbell  1 year ago

    Eh, in the context of the site and other snippets that seems pedantic.

    Could it be run on untrusted user input? Sure. Does it actually pose a threat? It's improbable.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities