You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/06/22 18:36:52 UTC

[GitHub] [arrow-datafusion] alamb opened a new issue #601: Panic while running join datatypes/schema.rs:165:10

alamb opened a new issue #601:
URL: https://github.com/apache/arrow-datafusion/issues/601


   **Describe the bug**
   
   > select * from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.3.0/src/datatypes/schema.rs:165:10
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   
   **To Reproduce**
   ```shell
   echo "1" > /tmp/foo.csv
   cargo run -p datafusion-cli 
   ```
   
   ```sql
   > CREATE EXTERNAL TABLE foo(bar int)
   STORED AS CSV
   LOCATION '/tmp/foo.csv';
   0 rows in set. Query took 0.000 seconds.
   > select * from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.3.0/src/datatypes/schema.rs:165:10
   ```
   
   **Expected behavior**
   Expected output of 1 row, with columns `f1.foo` and `f2.foo` each with value 1
   
   **Additional context**
   Likely follow on work from https://github.com/apache/arrow-datafusion/pull/55


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] alamb closed issue #601: Panic while running join datatypes/schema.rs:165:10

Posted by GitBox <gi...@apache.org>.
alamb closed issue #601:
URL: https://github.com/apache/arrow-datafusion/issues/601


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] alamb commented on issue #601: Panic while running join datatypes/schema.rs:165:10

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #601:
URL: https://github.com/apache/arrow-datafusion/issues/601#issuecomment-866237550


   Interestingly, it seems like f2.bar is causing some issues:
   
   ```
   > select f1.bar from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   +-----+
   | bar |
   +-----+
   | 1   |
   +-----+
   1 row in set. Query took 0.020 seconds.
   > select f1.bar, f2.bar from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.3.0/src/datatypes/schema.rs:165:10
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] alamb edited a comment on issue #601: Panic while running join datatypes/schema.rs:165:10

Posted by GitBox <gi...@apache.org>.
alamb edited a comment on issue #601:
URL: https://github.com/apache/arrow-datafusion/issues/601#issuecomment-866237550


   Interestingly, it seems like f2.bar is causing some issues:
   
   ```
   > select f1.bar from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   +-----+
   | bar |
   +-----+
   | 1   |
   +-----+
   1 row in set. Query took 0.020 seconds.
   > select f1.bar, f2.bar from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.3.0/src/datatypes/schema.rs:165:10
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   
   ```
   
   And
   ```
   > select f2.bar from foo as f1 JOIN foo as f2 ON f1.bar = f2.bar;
   thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.3.0/src/datatypes/schema.rs:165:10
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org