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 79BFECBED for ; Fri, 13 Apr 2012 15:14:38 +0000 (UTC) Received: (qmail 61872 invoked by uid 500); 13 Apr 2012 15:14:38 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 61848 invoked by uid 500); 13 Apr 2012 15:14:38 -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 61839 invoked by uid 99); 13 Apr 2012 15:14:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 15:14:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 15:14:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 213743694EE for ; Fri, 13 Apr 2012 15:14:17 +0000 (UTC) Date: Fri, 13 Apr 2012 15:14:17 +0000 (UTC) From: "Jonathan Ellis (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1798764797.22303.1334330057137.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <373140231.22216.1334328257430.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-4147) cqlsh doesn't accept NULL as valid input MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253445#comment-13253445 ] Jonathan Ellis commented on CASSANDRA-4147: ------------------------------------------- Explicitly inserting a null doesn't make much sense either; to Cassandra/CQL, null is the complete absence of a value. So we'll *return* a null if you ask for column {{foo}} and no {{foo}} exists for a given row, but I can't think of why you'd want to explicitly insert one. (And a row consisting entirely of nulls wouldn't exist at all...) > cqlsh doesn't accept NULL as valid input > ---------------------------------------- > > Key: CASSANDRA-4147 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4147 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.0.8 > Reporter: T Jake Luciani > Assignee: paul cannon > Priority: Minor > Fix For: 1.0.10 > > > cqlsh:cfs> insert into foo (key,val1,val2)values('row2',NULL,NULL); > Bad Request: unable to make long from 'NULL' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira