[ 
https://issues.apache.org/jira/browse/CASSANDRA-17539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520779#comment-17520779
 ] 

Brandon Williams commented on CASSANDRA-17539:
----------------------------------------------

I'm not sure we want this added to every statement given that dumps generated 
this way are often used for initial schema creation and restores.  I can see 
value in having a script that will raise an error if the table already exists 
instead of silently ignoring it.

> 'if not exists' clause should be produced on normal DESCRIBE cqlsh command
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17539
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.x
>
>
> IF NOT EXISTS is saved when one takes, for example, a snapshot and it is 
> added in schema.cql. However, I noticed that if one creates a table (or any 
> other CQL entity for that matter), on DESCRIBE, it will not create the output 
> with IF NOT EXISTS. I believe this is a discrepancy and it should be 
> targetted.



--
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