-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add bitwise_xor_agg Presto aggregate function #6705
Conversation
✅ Deploy Preview for meta-velox canceled.
|
efe3726
to
7ebd5ba
Compare
@mbasmanova can you help review this simple PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
|
||
Returns the bitwise XOR of all input values in 2's complement representation. | ||
|
||
Supported types are TINYINT, SMALLINT, INTEGER and BIGINT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed recently that Presto only supports BIGINT. Is this the case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I commented this fact in another PR.
@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@mbasmanova merged this pull request in d1c7bd9. |
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Summary: Fixes facebookincubator#6690 Fuzzer results: ``` ./velox/exec/tests/velox_aggregation_fuzzer_test --logtostderr --only "bitwise_xor_agg" --duration_sec 3600 I20230924 20:15:29.420713 3407272 AggregationFuzzer.cpp:780] ==============================> Done with iteration 5310 I20230924 20:15:29.420739 3407272 AggregationFuzzer.cpp:1503] Total functions tested: 1 I20230924 20:15:29.420745 3407272 AggregationFuzzer.cpp:1504] Total masked aggregations: 812 (15.29%) I20230924 20:15:29.421257 3407272 AggregationFuzzer.cpp:1506] Total global aggregations: 410 (7.72%) I20230924 20:15:29.421263 3407272 AggregationFuzzer.cpp:1508] Total group-by aggregations: 3880 (73.06%) I20230924 20:15:29.421272 3407272 AggregationFuzzer.cpp:1510] Total distinct aggregations: 544 (10.24%) I20230924 20:15:29.421276 3407272 AggregationFuzzer.cpp:1512] Total window expressions: 477 (8.98%) I20230924 20:15:29.421281 3407272 AggregationFuzzer.cpp:1514] Total aggregations verified against DuckDB: 487 (9.17%) I20230924 20:15:29.421286 3407272 AggregationFuzzer.cpp:1516] Total failed aggregations: 0 (0.00%) [==========] Running 0 tests from 0 test suites. [==========] 0 tests from 0 test suites ran. (0 ms total) [ PASSED ] 0 tests. ``` Pull Request resolved: facebookincubator#6705 Reviewed By: xiaoxmeng Differential Revision: D49674610 Pulled By: mbasmanova fbshipit-source-id: d7aa2b002a5399a1c96ac1c36f19f243e59ad951
Fixes #6690
Fuzzer results: