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

map_union_sum: Velox does not accept boolean type while Presto does #12382

Closed
peterenescu opened this issue Feb 19, 2025 · 1 comment
Closed
Labels
bug Something isn't working triage Newly created issue that needs attention.

Comments

@peterenescu
Copy link
Contributor

Bug description

Aggregate function map_union_sum does not accept type boolean and may cause fuzzer failures; however, Presto does accept BOOLEAN as a key type:

> select map_union_sum(x) from (select map(array[true, false], cast(array[1.1,2] as array<real>) ) x union all select map(array[true, false], cast(array[10,20] as array<real>)))
_col0
{
  "false": 22,
  "true": 11.1
}

System information

Unexpected key type BOOLEAN, Source: RUNTIME, ErrorCode: UNREACHABLE_CODE

Relevant logs

@peterenescu peterenescu added bug Something isn't working triage Newly created issue that needs attention. labels Feb 19, 2025
@peterenescu
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Newly created issue that needs attention.
Projects
None yet
Development

No branches or pull requests

1 participant