AMashenkov commented on code in PR #2226:
URL: https://github.com/apache/ignite-3/pull/2226#discussion_r1245027243


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/PrepareServiceImpl.java:
##########
@@ -296,4 +364,67 @@ private ResultSetMetadata resultSetMetadata(
                 }
         );
     }
+
+    private static SqlNode parse(String query, QueryContext queryContext, 
BaseQueryContext ctx) {
+        StatementParseResult parseResult = IgniteSqlParser.parse(query, 
StatementParseResult.MODE);
+
+        SqlNode sqlNode = parseResult.statement();
+
+        validateParsedStatement(queryContext, parseResult, sqlNode, 
ctx.parameters());
+
+        return sqlNode;
+    }
+
+    private static boolean skipCache(SqlNode sqlNode) {
+        SqlKind kind = sqlNode.getKind();
+
+        switch (kind) {
+            case SELECT:
+            case INSERT:
+                return false;

Review Comment:
   There is an issue IGNITE-19866 related to DELETE statement.
   Allow caching for the rest of DML queries.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to