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

Python CQL driver does not decode most values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.8 beta 1
    • Legacy/CQL
    • 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. 2507.txt
          8 kB
          Tom Hobbs
        2. repro.cql
          0.5 kB
          Eric Evans

        Activity

          People

            thobbs Tom Hobbs
            urandom Eric Evans
            Tom Hobbs
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: