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

Error in min/max queries: InvalidArgumentError("number of columns(1) must match number of fields(2) in schema" #12833

Closed
alamb opened this issue Oct 9, 2024 · 0 comments · Fixed by #12834
Assignees
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Oct 9, 2024

Describe the bug

In certain rare cases, Min/Max queries on string columns like this

SELECT b, max(a) FROM fuzz_table GROUP BY b

Will error like

InvalidArgumentError("number of columns(1) must match number of fields(2) in schema"

#12667

To Reproduce

Uncomment tests from the aggregation fuzzer added in #12667

        //   ArrowError(InvalidArgumentError("number of columns(1) must match number of fields(2) in schema"))
        // .add_sql("SELECT b, max(a) FROM fuzz_table GROUP BY b")
        // .add_sql("SELECT b, min(a) FROM fuzz_table GROUP BY b")

Expected behavior

Tests should pass

Additional context

No response

@alamb alamb added the bug Something isn't working label Oct 9, 2024
@alamb alamb self-assigned this Oct 9, 2024
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
Development

Successfully merging a pull request may close this issue.

1 participant