Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregation with group by cannot work for Dictionary array #6243

Closed
viirya opened this issue May 5, 2023 · 0 comments · Fixed by #6269
Closed

Aggregation with group by cannot work for Dictionary array #6243

viirya opened this issue May 5, 2023 · 0 comments · Fixed by #6269
Assignees
Labels
bug Something isn't working

Comments

@viirya
Copy link
Member

viirya commented May 5, 2023

Describe the bug

We fixed some Dictionary input issue for aggregate functions like sum and avg in #6197. But we also found another issue of Dictionary input. Aggregation with group by cannot work for Dictionary array.

To Reproduce

I've added test cases in datafusion/core/tests/sqllogictests/test_files/aggregate.slt.

DataFusion error: External error: Arrow error: Invalid argument error: RowConverter column schema mismatch, expected Int64 got Dictionary\(Int64, Int64\)
select sum(x_dict) from value_dict group by x_dict % 2;

Expected behavior

Aggregation with group by should work with Dictionary array.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant