Cyrill commented on code in PR #4667:
URL: https://github.com/apache/ignite-3/pull/4667#discussion_r1829652358


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/ddl/DdlSqlToCommandConverter.java:
##########
@@ -189,6 +193,20 @@ public DdlSqlToCommandConverter() {
         ));
     }
 
+    /**
+     * Parse string representation of consistency mode.
+     *
+     * @param consistencyMode String representation of consistency mode.
+     * @return Consistency mode
+     */
+    public static ConsistencyMode parseConsistencyMode(String consistencyMode) 
{
+        try {
+            return ConsistencyMode.valueOf(consistencyMode);
+        } catch (IllegalArgumentException e) {
+            throw new SqlException(STMT_VALIDATION_ERR, "Failed to parse 
consistency mode: " + consistencyMode);

Review Comment:
   Done



-- 
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-unsubscr...@ignite.apache.org

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

Reply via email to