From user-return-31037-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Fri Jan 11 03:28:21 2013 Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79838E71B for ; Fri, 11 Jan 2013 03:28:21 +0000 (UTC) Received: (qmail 85960 invoked by uid 500); 11 Jan 2013 03:28:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 85730 invoked by uid 500); 11 Jan 2013 03:28:18 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 85703 invoked by uid 99); 11 Jan 2013 03:28:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 03:28:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of derek@fyrie.net designates 72.14.182.177 as permitted sender) Received: from [72.14.182.177] (HELO sikozu.fyrie.net) (72.14.182.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 03:28:08 +0000 Received: from mail-vc0-f179.google.com ([209.85.220.179]) by sikozu.fyrie.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.76) (envelope-from ) id 1TtVHX-0006cT-Du for user@cassandra.apache.org; Thu, 10 Jan 2013 20:27:47 -0700 Received: by mail-vc0-f179.google.com with SMTP id p1so1063550vcq.10 for ; Thu, 10 Jan 2013 19:27:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.156.193 with SMTP id y1mr14283357vcw.56.1357874861589; Thu, 10 Jan 2013 19:27:41 -0800 (PST) Received: by 10.58.118.66 with HTTP; Thu, 10 Jan 2013 19:27:41 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Jan 2013 20:27:41 -0700 Message-ID: Subject: Re: CQL3 Blob Value Literal? From: Derek Williams To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d042f93a6c6443304d2fae083 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042f93a6c6443304d2fae083 Content-Type: text/plain; charset=UTF-8 Yes, but need to encode as hex if you want to use literals. On Thu, Jan 10, 2013 at 7:15 PM, Mike Sample wrote: > Does CQL3 support blob/BytesType literals for INSERT, UPDATE etc commands? > > I looked at the CQL3 syntax (http://cassandra.apache.org/doc/cql3/CQL.html) > and at the DataStax 1.2 docs. > > As for why I'd want such a thing, I just wanted to initialize some test > values for a blob column with cqlsh. > > Thanks! > -- Derek Williams --f46d042f93a6c6443304d2fae083 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, but need to encode as hex if you want to use literals= .


On Thu= , Jan 10, 2013 at 7:15 PM, Mike Sample <mike.sample@gmail.com><= /span> wrote:
Does CQL3 support blob= /BytesType literals for INSERT, UPDATE etc commands?

I looked at the CQL3 syntax (http://cassandra.apache.org/doc/cql3/CQL.html= ) and at the DataStax 1.2 docs.

As for why I'd want such a thing, I just wanted to = initialize some test values for a blob column with cqlsh.

Thanks!



--
Derek W= illiams
--f46d042f93a6c6443304d2fae083--