smiklosovic commented on code in PR #3831: URL: https://github.com/apache/cassandra/pull/3831#discussion_r1939218749
########## src/java/org/apache/cassandra/cql3/statements/schema/CopyTableStatement.java: ########## @@ -248,7 +278,24 @@ public CQLStatement prepare(ClientState state) { String oldKeyspace = oldName.hasKeyspace() ? oldName.getKeyspace() : state.getKeyspace(); String newKeyspace = newName.hasKeyspace() ? newName.getKeyspace() : state.getKeyspace(); - return new CopyTableStatement(oldKeyspace, newKeyspace, oldName.getName(), newName.getName(), ifNotExists, attrs); + return new CopyTableStatement(oldKeyspace, newKeyspace, oldName.getName(), newName.getName(), ifNotExists, createLikeOption, attrs); + } + + public void setLikeOptions(CreateLikeOption likeOption) + { + this.createLikeOption = likeOption; + } + } + + public enum CreateLikeOption + { + EMPTY("EMPTY"), Review Comment: This is not used anywhere except in `private CreateLikeOption createLikeOption = CreateLikeOption.EMPTY;` You can just set `createLikeOption` to `null`, you do not need `EMPTY`. You can remove `EMPTY`. -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org