pola-rs / polars-cli

CLI interface for running SQL queries with Polars as backend

Home Page:https://pola.rs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read_csv() with no args causes segfault

Dialga opened this issue · comments

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of the Polars CLI.

Reproducible example

polars -c "select*from read_csv()"
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-sql-0.36.2/src/table_functions.rs:76:49:
index out of bounds: the len is 0 but the index is 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

Issue description

Just came across this project, thought I'd give it a try, it crashed immediately.

Expected behavior

Some kind of error but no crash

Installed version

0.6.0