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 67635107CA for ; Fri, 22 Nov 2013 20:09:35 +0000 (UTC) Received: (qmail 24235 invoked by uid 500); 22 Nov 2013 20:09:35 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 24196 invoked by uid 500); 22 Nov 2013 20:09:35 -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 24188 invoked by uid 99); 22 Nov 2013 20:09:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 20:09:35 +0000 Date: Fri, 22 Nov 2013 20:09:35 +0000 (UTC) From: "Mikhail Stepura (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6172) COPY TO command doesn't escape single quote in collections 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-6172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Stepura updated CASSANDRA-6172: --------------------------------------- Fix Version/s: (was: 2.0.3) 2.0.4 > COPY TO command doesn't escape single quote in collections > ---------------------------------------------------------- > > Key: CASSANDRA-6172 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6172 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: Cassandra 2.0.1, Linux > Reporter: Ivan Mykhailov > Assignee: Mikhail Stepura > Priority: Minor > Fix For: 2.0.4 > > > {code} > CREATE TABLE test (key text PRIMARY KEY , testcollection set) ; > INSERT INTO test (key, testcollection ) VALUES ( 'test', {'foo''bar'}); > COPY test TO '/tmp/test.csv'; > COPY test FROM '/tmp/test.csv'; > Bad Request: line 1:73 mismatched character '' expecting ''' > Aborting import at record #0 (line 1). Previously-inserted values still present. > {code} > Content of generated '/tmp/test.csv': > {code} > test,{'foo'bar'} > {code} > Unfortunately, I didn't find workaround with any combination of COPY options -- This message was sent by Atlassian JIRA (v6.1#6144)