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/23 16:49:17 UTC

[GitHub] [arrow-datafusion] rdettai opened a new issue #612: Illegal projection on empty columns

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


   **Describe the bug**
   When the using an empty table (no column), a query like `select * from empty_table` fails.
   
   **To Reproduce**
   ```Rust
     let mut ctx = ExecutionContext::new();
     let empty_table = Arc::new(EmptyTable::new(Arc::new(Schema::empty())));
     ctx.register_table("test_tbl", empty_table).unwrap();
     let sql = "SELECT * FROM test_tbl";
     let result = plan_and_collect(&mut ctx, sql)
         .await
         .expect("Query empty table");
   ```
   
   **Expected behavior**
   Returns an empty table
   
   
   


-- 
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 commented on issue #612: Illegal projection on empty columns

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


   > fwiw, I am also getting this on master locally by running the tests.
   
   I have filed https://github.com/apache/arrow-datafusion/issues/614 -- and I will try to look into it tomorrow


-- 
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 commented on issue #612: Illegal projection on empty columns

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


   @rdettai  I wonder if something is different about the hash partitioning that is happening locally -- I wonder does the problem go away if you do `cargo update`?


-- 
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] Dandandan closed issue #612: Illegal projection on empty columns

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


   


-- 
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] jorgecarleitao commented on issue #612: Illegal projection on empty columns

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


   fwiw, I am also getting this on master locally by running the tests.


-- 
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] rdettai commented on issue #612: Illegal projection on empty columns

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


   Locally, I have a test that has nothing to do with this change that is failing:
   - physical_plan::repartition::tests::repartition_with_dropping_output_stream
   
   ```
   ---- physical_plan::repartition::tests::repartition_with_dropping_output_stream stdout ----
   Running case RoundRobinBatch(2)
   BarrierExec::wait waiting on barrier
   Partition 0 waiting on barrier
   Partition 1 waiting on barrier
   Partition 1 sending batch
   Partition 1 sending batch
   Partition 0 sending batch
   Partition 0 sending batch
   BarrierExec::wait done waiting
   Running case Hash([Column { name: "my_awesome_field", index: 0 }], 2)
   BarrierExec::wait waiting on barrier
   Partition 0 waiting on barrier
   Partition 1 waiting on barrier
   Partition 1 sending batch
   Partition 1 sending batch
   Partition 0 sending batch
   Partition 0 sending batch
   BarrierExec::wait done waiting
   thread 'physical_plan::repartition::tests::repartition_with_dropping_output_stream' panicked at 'assertion failed: `(left == right)`
     left: `["+------------------+", "| my_awesome_field |", "+------------------+", "| frob             |", "+------------------+"]`,
    right: `["+------------------+", "| my_awesome_field |", "+------------------+", "| foo              |", "| frob             |", "| gar              |", "| gaz              |", "| goo              |", "| grob             |", "+------------------+"]`: 
   
   expected:
   
   [
       "+------------------+",
       "| my_awesome_field |",
       "+------------------+",
       "| frob             |",
       "+------------------+",
   ]
   actual:
   
   [
       "+------------------+",
       "| my_awesome_field |",
       "+------------------+",
       "| foo              |",
       "| frob             |",
       "| gar              |",
       "| gaz              |",
       "| goo              |",
       "| grob             |",
       "+------------------+",
   ]
   
   ', datafusion/src/physical_plan/repartition.rs:799:13
   ```
   
   Any idea why that might be @alamb ?


-- 
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