Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2507

Python CQL driver does not decode most values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 0.8 beta 1
    • Component/s: Legacy/CQL
    • Labels:
    • Severity:
      Normal

      Description

      Most keys, and column name/values are not decoded properly. The attached CQL input can be used to demonstrate:

      Note: requires the patch from CASSANDRA-2505 to be applied

      $ drivers/py/cqlsh localhost 9170 < repro.cql 
       | '\x00\x00\x00\x00\x00\x00\x00\x01','\x00\x00\x00\x00\x00\x00\x00\x01' | '\x00\x00\x00\x00\x00\x00\x00\x02','\x00\x00\x00\x00\x00\x00\x00\x02'
      e�#j������ | 'e\xe2#\x01j\xa2\x11\xe0\x00\x00\xfe\x8e\xbe\xea\xd9\xff','e\xe2#\x02j\xa2\x11\xe0\x00\x00\xfe\x8e\xbe\xea\xd9\xff'
      

      For all practical purposes, this renders the driver useless for everything but strings.

        Attachments

        1. repro.cql
          0.5 kB
          Eric Evans
        2. 2507.txt
          8 kB
          Tom Hobbs

          Activity

            People

            • Assignee:
              thobbs Tom Hobbs
              Reporter:
              urandom Eric Evans
              Authors:
              Tom Hobbs
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: