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

cqlsh fails to decode blobs

    XMLWordPrintableJSON

Details

    • Normal

    Description

      As described in PYTHON-101, cqlsh patches the python driver's deserialization method for BytesType for formatting purposes. When the bundled driver was upgraded to 2.1, the patch was not updated to match, resulting in an error like this:

      cqlsh:unicode> select * from test;
      Traceback (most recent call last):
        File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/cqlsh", line 908, in perform_simple_statement
          rows = self.session.execute(statement, trace=self.tracing_enabled)
        File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/../lib/cassandra-driver-internal-only-2.1.0b1.post.zip/cassandra-driver-2.1.0b1.post/cassandra/cluster.py", line 1186, in execute
          result = future.result(timeout)
        File "/home/ryan/.ccm/repository/git_cassandra-2.1/bin/../lib/cassandra-driver-internal-only-2.1.0b1.post.zip/cassandra-driver-2.1.0b1.post/cassandra/cluster.py", line 2610, in result
          raise self._final_exception
      TypeError: validate() takes exactly 1 argument (2 given)
      

      Attachments

        1. 7603.txt
          0.7 kB
          Tom Hobbs

        Activity

          People

            thobbs Tom Hobbs
            thobbs Tom Hobbs
            Tom Hobbs
            Aleksey Yeschenko
            Ryan McGuire Ryan McGuire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: