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, 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
Refer to this https://github.com/influxdata/influxdb_iox/issues/2776 for history and analysis
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, you will hit that bug.
Expected behavior
Query runs and returns correct results
Refer to this https://github.com/influxdata/influxdb_iox/issues/2776 for history and analysis