You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2020/08/05 12:21:00 UTC

[jira] [Created] (ARROW-9652) [Rust][DataFusion] Panic trying to select * from a CSV (panicked at 'index out of bounds: the len is 0 but the index is 0)

Andrew Lamb created ARROW-9652:
----------------------------------

             Summary: [Rust][DataFusion] Panic trying to select * from a CSV (panicked at 'index out of bounds: the len is 0 but the index is 0)
                 Key: ARROW-9652
                 URL: https://issues.apache.org/jira/browse/ARROW-9652
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Andrew Lamb
         Attachments: repro.csv

I was trying to write a reproducer for another bug, and I hit this one:

Repro:

{code}
CREATE EXTERNAL TABLE repro
STORED AS CSV
LOCATION 'repro.csv';

select * from repro;
{code}

The contents of repro.csv are as follows (also attached):
{code}
a,b
1,100
1,200
2,100
2,200
2,300
{code}

Expected behavior: a table of 2 columns, 5 rows is returned

Actual behavior: A panic occurs:

{code}
> 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
{code}

I'll try and look into it myself, but I wanted to get the repro up first.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)