JiajunBernoulli commented on code in PR #3442:
URL: https://github.com/apache/calcite/pull/3442#discussion_r1359788756
##########
server/src/main/java/org/apache/calcite/server/ServerDdlExecutor.java:
##########
@@ -559,6 +561,53 @@ public void execute(SqlCreateTable create,
}
}
+ /** Executes a {@code CREATE TABLE LIKE} command. */
+ public void execute(SqlCreateTableLike create,
+ CalcitePrepare.Context context) {
+ final Pair<CalciteSchema, String> pair = schema(context, true,
create.name);
+ final JavaTypeFactory typeFactory = context.getTypeFactory();
Review Comment:
`typeFactory` and `rowType` can be moved to last because them are used by
last code.
--
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]