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/11/03 16:57:23 UTC

[GitHub] [arrow-datafusion] NGA-TRAN opened a new issue #1234: select min/max(string dictionary) panics

NGA-TRAN opened a new issue #1234:
URL: https://github.com/apache/arrow-datafusion/issues/1234


   **Describe the bug**
   SELECT min/max(dictionary_string_column) will panic with the following message:
   `ArrowError(InvalidArgumentError("column types must match schema types, expected Dictionary(Int32, Utf8) but found Utf8 at column index 0"))'`
   
   **To Reproduce**
   Add the below test inside [query_on_string_dictionary](https://github.com/apache/arrow-datafusion/blob/dd9350607a9b4c8aaf6d7204fda8f1eab31a7ac2/datafusion/tests/sql.rs#L3935-L3993), you will hit that bug.
       // aggregation min
       let sql = "SELECT MIN(d1) FROM test";
       let actual = execute(&mut ctx, sql).await;
       let expected = vec![vec!["one"]];
       assert_eq!(expected, actual);
   
   **Expected behavior**
   Query runs and returns correct results
   
   


-- 
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 closed issue #1234: select min/max(string dictionary) panics

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


   


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