From pr-return-2176-apmail-cassandra-pr-archive=cassandra.apache.org@cassandra.apache.org Mon Dec 2 13:12:01 2019 Return-Path: X-Original-To: apmail-cassandra-pr-archive@minotaur.apache.org Delivered-To: apmail-cassandra-pr-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id CEC081948B for ; Mon, 2 Dec 2019 13:12:00 +0000 (UTC) Received: (qmail 91580 invoked by uid 500); 2 Dec 2019 13:12:00 -0000 Delivered-To: apmail-cassandra-pr-archive@cassandra.apache.org Received: (qmail 91550 invoked by uid 500); 2 Dec 2019 13:12:00 -0000 Mailing-List: contact pr-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pr@cassandra.apache.org Delivered-To: mailing list pr@cassandra.apache.org Received: (qmail 91538 invoked by uid 99); 2 Dec 2019 13:12:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2019 13:12:00 +0000 From: GitBox To: pr@cassandra.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 Message-ID: <157529231996.6557.11889719724653232237.gitbox@gitbox.apache.org> Date: Mon, 02 Dec 2019 13:11:59 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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