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

Fix set_union Presto aggregate #6800

Closed
wants to merge 1 commit into from

Conversation

mbasmanova
Copy link
Contributor

set_union semantics in Presto are non-intuitive. When all inputs are null,
set_union returns an empty array, not a null.

Fixes #6720

@netlify
Copy link

netlify bot commented Sep 28, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit e3c5580
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6515b51bcb27b8000822055b

@mbasmanova mbasmanova changed the title Fix set-union Presto aggregate Fix set_union Presto aggregate Sep 28, 2023
@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 28, 2023
@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 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbasmanova LGTM. Thanks!

@facebook-github-bot
Copy link
Contributor

@mbasmanova merged this pull request in 85578c5.

ericyuliu pushed a commit to ericyuliu/velox that referenced this pull request Oct 12, 2023
Summary:
set_union semantics in Presto are non-intuitive. When all inputs are null,
set_union returns an empty array, not a null.

Fixes facebookincubator#6720

Pull Request resolved: facebookincubator#6800

Reviewed By: xiaoxmeng

Differential Revision: D49736358

Pulled By: mbasmanova

fbshipit-source-id: a47b5fff7199f899b4cbe7e950d46fd23c89458f
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.

set_union applied to all null values should return an empty array, not null
3 participants