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

Add bitwise_xor_agg Presto aggregate function #6705

Closed

Conversation

xumingming
Copy link
Contributor

@xumingming xumingming commented Sep 23, 2023

Fixes #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.

@netlify
Copy link

netlify bot commented Sep 23, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 7ebd5ba
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/650ef6d3a206f70008c23285

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 23, 2023
@xumingming
Copy link
Contributor Author

@mbasmanova can you help review this simple PR?

Copy link
Contributor

@mbasmanova mbasmanova left a 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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@facebook-github-bot
Copy link
Contributor

@mbasmanova has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mbasmanova merged this pull request in d1c7bd9.

@conbench-facebook
Copy link

Conbench analyzed the 1 benchmark run on commit d1c7bd9d.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

ericyuliu pushed a commit to ericyuliu/velox that referenced this pull request Oct 12, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Presto Aggregate bitwise_xor_agg
3 participants