tkalkirill commented on code in PR #783:
URL: https://github.com/apache/ignite-3/pull/783#discussion_r854967106


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/ddl/DdlSqlToCommandConverter.java:
##########
@@ -388,104 +428,170 @@ private void ensureSchemaExists(PlanningContext ctx, 
String schemaName) {
     }
 
     /**
-     * Short cut for validating that option value is a simple identifier.
+     * Throws exception with message relates to validation of create table 
option.
      *
-     * @param opt An option to validate.
-     * @param ctx Planning context.
+     * @param opt An option which validation was failed.
+     * @param exp A string representing expected values.
+     * @param qry A query the validation was failed for.
      */
-    private String paramIsSqlIdentifierValidator(IgniteSqlCreateTableOption 
opt, PlanningContext ctx) {
-        if (!(opt.value() instanceof SqlIdentifier) || !((SqlIdentifier) 
opt.value()).isSimple()) {
-            throwOptionParsingException(opt, "a simple identifier", 
ctx.query());
+    private static void throwOptionParsingException(IgniteSqlCreateTableOption 
opt, String exp, String qry) {

Review Comment:
   Fix it.



-- 
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