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 2022/11/30 03:35:07 UTC

[GitHub] [arrow-datafusion] jackwener opened a new issue, #4430: `UnwrapCastInComparison` exist bug

jackwener opened a new issue, #4430:
URL: https://github.com/apache/arrow-datafusion/issues/4430

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   run in optimizer integration-test
   
   ```rust
   #[test]
   fn push_down_filter_groupby_expr_contains_alias() {
       let sql = "SELECT * FROM (SELECT (col_int32 + col_uint32) AS c, count(*) FROM test GROUP BY 1) where c > 3";
       let plan = test_sql(sql).unwrap();
       let expected = "Projection: c, COUNT(UInt8(1))\
       \n  Projection: test.col_int32 + test.col_uint32 AS c, COUNT(UInt8(1))\
       \n    Aggregate: groupBy=[[test.col_int32 + CAST(test.col_uint32 AS Int32)]], aggr=[[COUNT(UInt8(1))]]\
       \n      Filter: CAST(test.col_int32 + test.col_uint32 AS Int64) > Int64(3)\
       \n        TableScan: test projection=[col_int32, col_uint32]";
       assert_eq!(expected, format!("{:?}", plan));
   }
   ```
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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.apache.org

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


[GitHub] [arrow-datafusion] jackwener closed issue #4430: `UnwrapCastInComparison` exist bug

Posted by GitBox <gi...@apache.org>.
jackwener closed issue #4430: `UnwrapCastInComparison` exist bug
URL: https://github.com/apache/arrow-datafusion/issues/4430


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