libenchao commented on a change in pull request #11116: [FLINK-15349] add
'create catalog' DDL to blink planner
URL: https://github.com/apache/flink/pull/11116#discussion_r380455859
##########
File path:
flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl
##########
@@ -56,6 +56,31 @@ SqlUseCatalog SqlUseCatalog() :
}
/**
+* Parses a create catalog statement.
+* CREATE CATALOG catalog_name [WITH (property_name=property_value, ...)];
+*/
+SqlCreate SqlCreateCatalog(Span s, boolean replace) :
+{
+ SqlParserPos startPos;
+ SqlIdentifier catalogName;
+ SqlNodeList propertyList = SqlNodeList.EMPTY;
+}
+{
+ <CATALOG> { startPos = getPos(); }
+ catalogName = CompoundIdentifier()
+ [
+ <WITH>
+ propertyList = TableProperties()
+ ]
+ {
+ return new SqlCreateCatalog(startPos.plus(getPos()),
+ catalogName,
+ propertyList);
+ }
+}
+
+
+ /**
Review comment:
seems an unintentional indent.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services