cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolai Grigoriev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7415) COPY command does not quote map keys
Date Wed, 18 Jun 2014 15:01:31 GMT
Nikolai Grigoriev created CASSANDRA-7415:
--------------------------------------------

             Summary: COPY command does not quote map keys
                 Key: CASSANDRA-7415
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7415
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
         Environment: Cassandra 2.0.5, Linux
            Reporter: Nikolai Grigoriev
            Priority: Minor


{quote}
create table test (pk text primary key, props map<ascii, blob>);
cqlsh:myks> insert into test (pk, props) values ('aaa', {'prop1': 0x1020, 'prop2': 0x4050});
cqlsh:myks> copy test to 't.csv';
1 rows exported in 0.056 seconds.
cqlsh:myks> copy test from 't.csv';
Bad Request: line 1:74 no viable alternative at input ':'
Aborting import at record #0 (line 1). Previously-inserted values still present.
0 rows imported in 0.012 seconds.
cqlsh:myks>
{quote}

t.csv:

{code}
# cat t.csv
aaa,"{prop1: 0x1020, prop2: 0x4050}"
{code}

I believe the missing quotes in the CSV file cause INSERT to fail. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message