[ 
https://issues.apache.org/jira/browse/ARROW-9652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Grove resolved ARROW-9652.
-------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

Issue resolved by pull request 7906
[https://github.com/apache/arrow/pull/7906]

> [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
>          Components: Rust, Rust - DataFusion
>            Reporter: Andrew Lamb
>            Assignee: Andrew Lamb
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>         Attachments: repro.csv
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to