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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]