-
Notifications
You must be signed in to change notification settings - Fork 94
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
NULL is NULL Fix #2859
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
@@ -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) { |
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.
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
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've applied the requested change in the new force push
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 end up making a minor change to refactor the code.
5a82aab
to
1255c52
Compare
Exact same PR as 2830, this time from a branch instead of a fork so as to pass CI tests.