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

[TINY] Fix to #16245 - Null semantics applies incorrectly for SqlFunction #16266

Merged
merged 2 commits into from
Jun 28, 2019

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Jun 26, 2019

problem was that when we were computing a nullability of sql function, if the function didn't have instance, we would inherit nullability from the expression that was visited previously.
Fix is to only use nullability of instance expression if that expression is not null.

@maumar maumar requested a review from smitpatel June 26, 2019 00:21
@maumar
Copy link
Contributor Author

maumar commented Jun 26, 2019

updated

@@ -171,6 +171,7 @@ private CaseExpression VisitCaseExpression(CaseExpression caseExpression)

private SqlFunctionExpression VisitSqlFunctionExpression(SqlFunctionExpression sqlFunctionExpression)
Copy link
Contributor

Choose a reason for hiding this comment

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

CaseExpression may also need reset since Operand can be null.

maumar and others added 2 commits June 28, 2019 13:34
problem was that when we were computing a nullability of sql function, if the function didn't have instance, we would inherit nullability from the expression that was visited previously.
Fix is to only use nullability of instance expression if that expression is not null.
@smitpatel
Copy link
Contributor

@AndriySvyryd - I added commit here to address the PR feedback. Can you give sign-off?

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.

3 participants