yifan-c commented on code in PR #4411:
URL: https://github.com/apache/cassandra/pull/4411#discussion_r2492421136
##########
src/java/org/apache/cassandra/cql3/statements/schema/CopyTableStatement.java:
##########
@@ -115,7 +120,7 @@ public Keyspaces apply(ClusterMetadata metadata)
if (null == sourceKeyspaceMeta)
throw ire("Source Keyspace '%s' doesn't exist", sourceKeyspace);
- TableMetadata sourceTableMeta =
sourceKeyspaceMeta.getTableNullable(sourceTableName);
+ TableMetadata sourceTableMeta =
sourceKeyspaceMeta.getTableOrViewNullable(sourceTableName);
if (null == sourceTableMeta)
throw ire("Souce Table '%s.%s' doesn't exist", sourceKeyspace,
sourceTableName);
Review Comment:
Not part of your patch, but could you fix the typo..
`Souce` should be `Source`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]