-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
IGNITE-23673 SQL Calcite: Fix NVL/DECODE failure when used with param… #11659
Conversation
…eters of different data types
...a/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlCallRewriteTable.java
Outdated
Show resolved
Hide resolved
…eters of different data types
...test/java/org/apache/ignite/internal/processors/query/calcite/integration/FunctionsTest.java
Show resolved
Hide resolved
...a/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlCallRewriteTable.java
Show resolved
Hide resolved
...a/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlCallRewriteTable.java
Outdated
Show resolved
Hide resolved
...a/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlCallRewriteTable.java
Outdated
Show resolved
Hide resolved
SqlNodeList thenList = new SqlNodeList(pos); | ||
|
||
for (int i = 1; i < operands.size() - 1; i += 2) { | ||
whenList.add(SqlStdOperatorTable.IS_NOT_DISTINCT_FROM.createCall(pos, SqlNode.clone(op0), operands.get(i))); |
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.
Do we need SqlNode.clone(op0)
here and above?
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.
Yes, we need to guarantee that oriented graph is a tree, or we can get some unexpected behaviour during recursive tree traversal.
…eters of different data types
…eters of different data types
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
the
green visa
attached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email [email protected] or ask anу advice on http://asf.slack.com #ignite channel.