Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80C0917B58 for ; Thu, 8 Jan 2015 12:30:35 +0000 (UTC) Received: (qmail 34205 invoked by uid 500); 8 Jan 2015 12:30:36 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 34171 invoked by uid 500); 8 Jan 2015 12:30:36 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 34121 invoked by uid 99); 8 Jan 2015 12:30:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 12:30:36 +0000 Date: Thu, 8 Jan 2015 12:30:36 +0000 (UTC) From: "Robert Stupp (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8355) NPE when passing wrong argument in ALTER TABLE statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Stupp updated CASSANDRA-8355: ------------------------------------ Reviewer: Robert Stupp > NPE when passing wrong argument in ALTER TABLE statement > -------------------------------------------------------- > > Key: CASSANDRA-8355 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8355 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 2.1.2 > Reporter: Pierre Laporte > Assignee: Benjamin Lerer > Priority: Minor > Fix For: 2.1.3 > > Attachments: CASSANDRA-8355.txt > > > When I tried to change the caching strategy of a table, I provided a wrong argument {{'rows_per_partition' : ALL}} with unquoted ALL. Cassandra returned a SyntaxError, which is good, but it seems it was because of a NullPointerException. > *Howto* > {code} > CREATE TABLE foo (k int primary key); > ALTER TABLE foo WITH caching = {'keys' : 'all', 'rows_per_partition' : ALL}; > {code} > *Output* > {code} > > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)