[
https://issues.apache.org/jira/browse/CASSANDRA-19964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903297#comment-17903297
]
Maxwell Guo edited comment on CASSANDRA-19964 at 12/6/24 2:18 AM:
------------------------------------------------------------------
Hello [~smiklosovic], I have made an initial code modification as you said, but
I encountered a problem during the modification process.
For the dropped column, my original clone method will also copy the metadata of
the dropped column (of course, let's ignore the mistake of forgetting to deep
copy). According to the new way of parsing CQL, the new table will not contain
the metadata of the dropped column.
I think there is no problem with simply copying the table metadata, and it does
not affect the correctness, because the table is newly created, and it is
reasonable to ignore the columns that have been dropped on the source table.
But I still want to raise this potential problem and let's discuss it.
cc [~blerer] [~aleksey] [~edimitrova] [~brandon.williams][~maedhroz]:D :)
was (Author: maxwellguo):
Hello [~smiklosovic], I have made an initial code modification as you said, but
I encountered a problem during the modification process.
For the dropped column, my original clone method will also copy the metadata of
the dropped column (of course, let's ignore the mistake of forgetting to deep
copy). According to the new way of parsing CQL, the new table will not contain
the metadata of the dropped column.
I think there is no problem with simply copying the table metadata, and it does
not affect the correctness, because the table is newly created, and it is
reasonable to ignore the columns that have been dropped on the source table.
But I still want to raise this potential problem and let's discuss it.
cc [~blerer] [~aleksey] [~edimitrova] :)
> CREATE TABLE LIKE for copying Basic Table definition
> -----------------------------------------------------
>
> Key: CASSANDRA-19964
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19964
> Project: Apache Cassandra
> Issue Type: New Feature
> Components: Cluster/Schema, CQL/Syntax
> Reporter: Maxwell Guo
> Assignee: Maxwell Guo
> Priority: Normal
> Fix For: 5.x
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> Introduce CREATE TABLE LIKE grammar that only COPY table's basic information:
> primary key , clustering key, regular column , and their data
> types(including udt), data masking and table params , under the same keyspace
> or different keyspace.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]