Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
I was trying to write a reproducer for another bug, and I hit this one:
Repro:
CREATE EXTERNAL TABLE repro
STORED AS CSV
LOCATION 'repro.csv';
select * from repro;
The contents of repro.csv are as follows (also attached):
a,b 1,100 1,200 2,100 2,200 2,300
Expected behavior: a table of 2 columns, 5 rows is returned
Actual behavior: A panic occurs:
> select * from repro; thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', datafusion/src/optimizer/projection_push_down.rs:238:31 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'll try and look into it myself, but I wanted to get the repro up first.
Attachments
Attachments
Issue Links
- links to