Benjamin Lerer created CASSANDRA-17181:
------------------------------------------

             Summary: schema.cql should have IF NOT EXISTS for CREATE TYPE
                 Key: CASSANDRA-17181
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17181
             Project: Cassandra
          Issue Type: Bug
          Components: Local/Snapshots
            Reporter: Benjamin Lerer
            Assignee: Benjamin Lerer


When a schema.cql is created during a snapshot, {{CREATE TYPE}} statements are 
not created with {{IF NOT EXISTS}} as the {{CREATE TABLE}} statements. This can 
cause some issues when using those statements during restore.

Additional Information for newcomers:

In 3.0 and 3.11 the code use to generate the {{schema.cql}} file is in 
{{TableCQLHelper}} and the unit tests in {{TableCQLHelperTest}}.
In 4.0 the bug does not exist anymore but the test {{SchemaCQLHelperTest}} does 
not test the correct behavior  and the code could be simplified



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to