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 FunctionType::equivalent #6952

Closed
wants to merge 1 commit into from

Conversation

duanmeng
Copy link
Collaborator

@duanmeng duanmeng commented Oct 7, 2023

FunctionType::equivalent only works for ScalarType arguments,
it returns wrong results when arguments are ComplexType, say
FUNCTION<ARRAY<BIGINT>, BOOLEAN> vs. FUNCTION<ARRAY<BIGINT>, BOOLEAN>
would return false if using this API.

@netlify
Copy link

netlify bot commented Oct 7, 2023

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 2fade58
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/652113287b297c000846941a

@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 Oct 7, 2023
@duanmeng
Copy link
Collaborator Author

duanmeng commented Oct 7, 2023

@xiaoxmeng Hi Xiaoxuan, could you please help review this PR? I found this issue when I tried to add UT at #6950. Thanks a lot.

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.

@duanmeng LGTM. Thanks for the fix!

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in 417e43f.

@conbench-facebook
Copy link

Conbench analyzed the 1 benchmark run on commit 417e43f9.

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:
`FunctionType::equivalent` only works for `ScalarType` arguments,
it returns wrong results when arguments are `ComplexType`, say
`FUNCTION<ARRAY<BIGINT>, BOOLEAN>` vs. `FUNCTION<ARRAY<BIGINT>, BOOLEAN>`
would return false if using this API.

Pull Request resolved: facebookincubator#6952

Reviewed By: bikramSingh91

Differential Revision: D50072758

Pulled By: xiaoxmeng

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

3 participants