cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra] tzach opened a new pull request #390: fix an error in ALTER TABLE doc when adding or dropping multiple columns
Date Mon, 02 Dec 2019 13:11:59 GMT
tzach opened a new pull request #390: fix an error in ALTER TABLE doc when adding or dropping
multiple columns
URL: https://github.com/apache/cassandra/pull/390
 
 
   This PR sync the ALTER TABLE doc with the actual functionality.
   In practice (as tested with 3.1.11) both add and drop of multiple columns requires parentheses
around the columns list
   
   ```
   create table test_alter( a int primary key) ;
   alter table test_alter add b int; // one column - works
   alter table test_alter add c int , d int; // two colmns with out parentheses - does not
work
   SyntaxException: line 1:33 mismatched input ',' expecting EOF (...table test_alter add
c int [,] d...)
   alter table test_alter add (c int , d int); // two colmns with parentheses - works
   ```  
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message