cassandra-commits mailing list archives

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

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

Alex Liu commented on CASSANDRA-6073:
-------------------------------------

It's now using url encoding for prepared Statements, so you need encode the full CQL prepared
statements.
                
> 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