Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Which one?


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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: