[ 
https://issues.apache.org/jira/browse/CASSANDRA-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chad Johnston updated CASSANDRA-6073:
-------------------------------------

    Description: 
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?

  was:
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?

Further:
I've tried URL encoding, and changing the CqlStorage code back to its previous 
behavior. I get the same error in this case of a long being a different size 
than expected.

    
> 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
>
> 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

Reply via email to