You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "zstan (via GitHub)" <gi...@apache.org> on 2023/08/25 13:56:23 UTC

[GitHub] [ignite-3] zstan opened a new pull request, #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

zstan opened a new pull request, #2503:
URL: https://github.com/apache/ignite-3/pull/2503

   Thank you for submitting the pull request.
   
   To streamline the review process of the patch and ensure better code quality
   we ask both an author and a reviewer to verify the following:
   
   ### The Review Checklist
   - [ ] **Formal criteria:** TC status, codestyle, mandatory documentation. Also make sure to complete the following:  
   \- There is a single JIRA ticket related to the pull request.  
   \- The web-link to the pull request is attached to the JIRA ticket.  
   \- The JIRA ticket has the Patch Available state.  
   \- The description of the JIRA ticket explains WHAT was made, WHY and HOW.  
   \- The pull request title is treated as the final commit message. The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
   - [ ] **Design:** new code conforms with the design principles of the components it is added to.
   - [ ] **Patch quality:** patch cannot be split into smaller pieces, its size must be reasonable.
   - [ ] **Code quality:** code is clean and readable, necessary developer documentation is added if needed.
   - [ ] **Tests code quality:** test set covers positive/negative scenarios, happy/edge cases. Tests are effective in terms of execution time and resources.
   
   ### Notes
   - [Apache Ignite Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Java+Code+Style+Guide)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] AMashenkov commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "AMashenkov (via GitHub)" <gi...@apache.org>.
AMashenkov commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1307354703


##########
modules/sql-engine/build.gradle:
##########
@@ -57,6 +57,8 @@ dependencies {
     implementation libs.classgraph
     implementation libs.javassist
     implementation libs.auto.service.annotations
+    implementation libs.jsr305

Review Comment:
   Why do we need JSR305?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] zstan commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1309056988


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/exp/agg/AccumulatorsFactory.java:
##########
@@ -284,9 +288,12 @@ public void add(RowT row) {
                 return;
             }
 
-            Object[] args = new Object[argList.size()];
-            for (int i = 0; i < argList.size(); i++) {
-                args[i] = handler.get(argList.get(i), row);
+            int params = literalAgg ? 1 : argList.size();
+
+            Object[] args = new Object[params];

Review Comment:
   of course, fix it soon.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] lowka commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "lowka (via GitHub)" <gi...@apache.org>.
lowka commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1308871744


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/exp/agg/AccumulatorsFactory.java:
##########
@@ -284,9 +288,12 @@ public void add(RowT row) {
                 return;
             }
 
-            Object[] args = new Object[argList.size()];
-            for (int i = 0; i < argList.size(); i++) {
-                args[i] = handler.get(argList.get(i), row);
+            int params = literalAgg ? 1 : argList.size();
+
+            Object[] args = new Object[params];

Review Comment:
   We need an issue to clean up this code after the issue with RelJson serialization/de serialization is fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] ygerzhedovich commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "ygerzhedovich (via GitHub)" <gi...@apache.org>.
ygerzhedovich commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1309918029


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/exp/RexToLixTranslator.java:
##########
@@ -301,12 +306,11 @@ Expression translateCast(
                 switch (sourceType.getSqlTypeName()) {
                     case CHAR:
                     case VARCHAR:
-                        convert = Expressions.call(BuiltInMethod.ST_GEOM_FROM_EWKT.method, operand);
-                        break;

Review Comment:
   What reason for the change? we are supporting GEOMETRY?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] ygerzhedovich commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "ygerzhedovich (via GitHub)" <gi...@apache.org>.
ygerzhedovich commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1309918029


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/exp/RexToLixTranslator.java:
##########
@@ -301,12 +306,11 @@ Expression translateCast(
                 switch (sourceType.getSqlTypeName()) {
                     case CHAR:
                     case VARCHAR:
-                        convert = Expressions.call(BuiltInMethod.ST_GEOM_FROM_EWKT.method, operand);
-                        break;

Review Comment:
   What reason for the change? we are supporting GEOMETRY?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] zstan commented on a diff in pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan commented on code in PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503#discussion_r1308215243


##########
modules/sql-engine/build.gradle:
##########
@@ -57,6 +57,8 @@ dependencies {
     implementation libs.classgraph
     implementation libs.javassist
     implementation libs.auto.service.annotations
+    implementation libs.jsr305

Review Comment:
   for autogenerated code (@Nullable annotations) there is no way to change it into jetbrains implementation, previously this dependency was linked transiently



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ignite-3] zstan merged pull request #2503: IGNITE-20077 Sql. Bump calcite version to 1.35.0

Posted by "zstan (via GitHub)" <gi...@apache.org>.
zstan merged PR #2503:
URL: https://github.com/apache/ignite-3/pull/2503


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org