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

NULL is NULL Fix #2859

Merged
merged 1 commit into from
Feb 18, 2024
Merged

NULL is NULL Fix #2859

merged 1 commit into from
Feb 18, 2024

Conversation

mxwli
Copy link
Contributor

@mxwli mxwli commented Feb 9, 2024

Exact same PR as 2830, this time from a branch instead of a fork so as to pass CI tests.

Copy link

codecov bot commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0d57b0b) 93.45% compared to head (1255c52) 93.44%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2859      +/-   ##
==========================================
- Coverage   93.45%   93.44%   -0.01%     
==========================================
  Files        1104     1104              
  Lines       42468    42470       +2     
==========================================
- Hits        39687    39685       -2     
- Misses       2781     2785       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -12,7 +13,16 @@ std::shared_ptr<Expression> ExpressionBinder::bindNullOperatorExpression(
const ParsedExpression& parsedExpression) {
expression_vector children;
for (auto i = 0u; i < parsedExpression.getNumChildren(); ++i) {
children.push_back(bindExpression(*parsedExpression.getChild(i)));
if (parsedExpression.getChild(i)->getExpressionType() == common::ExpressionType::LITERAL) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably can reuse existing code path to resolve ANY data type for NULL literals

auto boundChild = bindExpression(*parsedExpression.getChild(i));
// if boundChild.dataType == ANY
//     implicitCastIfNecessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've applied the requested change in the new force push

Copy link
Contributor

Choose a reason for hiding this comment

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

I end up making a minor change to refactor the code.

@andyfengHKU andyfengHKU merged commit 044f293 into master Feb 18, 2024
15 checks passed
@andyfengHKU andyfengHKU deleted the nullisnull branch February 18, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants