cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Johnston (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6073) Changes for Pig collections break CQL prepared statements
Date Mon, 23 Sep 2013 17:53:06 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13774782#comment-13774782
] 

Chad Johnston commented on CASSANDRA-6073:
------------------------------------------

Is this change documented anywhere? I only lucked onto it by digging into the comments of
CASSANDRA-5867. This has the side effect of requiring us to change all of our existing Pig
scripts that use CqlStorage for saving into Cassandra, and the URL encoding greatly reduces
readability of the Pig script.
                
> Changes for Pig collections break CQL prepared statements
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-6073
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6073
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>         Environment: 1.2.10-tentative branch
>            Reporter: Chad Johnston
>            Assignee: Alex Liu
>
> I've checked out and built the 1.2.10-tentative branch, and I've noticed that all of
my CQL prepared statements are now broken.
> Looking into the code, it looks like the "#" -> "=" and "@" -> "?" translations
were removed. I tried to replace these in one of my scripts with "=" and "?", but there's
other code that splits the query string on "=", causing the prepared statement to be malformed.
> If I look at the comments on https://issues.apache.org/jira/browse/CASSANDRA-5867, where
this change was made, I see a single mention of URL encoding the CQL query. Is this the expectation
going forward? Was there a reason that the "#" and "@" mappings were removed?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message