pola-rs / polars-cli

CLI interface for running SQL queries with Polars as backend
https://pola.rs/
MIT License
159 stars 12 forks source link

Support arbitrary separators in `read_csv` #61

Open apcamargo opened 8 months ago

apcamargo commented 8 months ago

Description

TSV files are pretty common, but I couldn't make them work with polars-cli. Apparently, the read_csv function of polars-cli doesn't take the same arguments as the one in Python (maybe it doesn't support arguments at all?)

From what I've seen in table_functions.rs, read_csv uses a LazyCsvReader, which apparently supports the separator argument. I can't say I'm very familiar with Polar's code, though. I might be missing something obvious.