zlacker

[parent] [thread] 2 comments
1. richbe+(OP)[view] [source] 2024-08-25 16:11:39
Which one?
replies(1): >>xigoi+a2
2. xigoi+a2[view] [source] 2024-08-25 16:24:17
>>richbe+(OP)

  #!/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);" }
replies(1): >>richbe+lh1
◧◩
3. richbe+lh1[view] [source] [discussion] 2024-08-26 01:59:46
>>xigoi+a2
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.

[go to top]