You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Kaushal Shriyan <ka...@gmail.com> on 2015/05/19 09:44:05 UTC

cqlsh ValueError: Don't know how to parse type string

Hi,

I am running cassandra version 1.2.19 and cqlsh version 3.1.8 in my setup

cqlsh:apprepo> select * from test_proxy_revisions_r21 limit 10 ;
Traceback (most recent call last):
  File "./cqlsh", line 1039, in perform_statement_untraced
    self.cursor.execute(statement, decoder=decoder)
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py",
line 81, in execute
    return self.process_execution_results(response, decoder=decoder)
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py",
line 116, in process_execution_results
    self.get_metadata_info(self.result[0])
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py",
line 97, in get_metadata_info
    name, nbytes, vtype, ctype = self.get_column_metadata(colid)
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py",
line 104, in get_column_metadata
    return self.decoder.decode_metadata_and_type(column_id)
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/decoders.py",
line 40, in decode_metadata_and_type
    valdtype = cqltypes.lookup_casstype(validator)
  File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cqltypes.py",
line 145, in lookup_casstype
    raise ValueError("Don't know how to parse type string %r: %s" %
(casstype, e))
ValueError: Don't know how to parse type string
'org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)':
weird characters '=>org.apache.cassandra.db.marshal.UTF8Type)' at end

Any clue?

Regards,

Kaushal

Re: cqlsh ValueError: Don't know how to parse type string

Posted by Robert Coli <rc...@eventbrite.com>.
On Tue, May 19, 2015 at 4:47 AM, Kaushal Shriyan <ka...@gmail.com>
wrote:

> I am looking forward for your reply and please do let me know if you need
> any other additional information.
>

I might file a JIRA if I were you; your use case is an edge case which
might expose a bug.

=Rob

Re: cqlsh ValueError: Don't know how to parse type string

Posted by Kaushal Shriyan <ka...@gmail.com>.
Hi DuyHai Doan,

I am looking forward for your reply and please do let me know if you need
any other additional information.

Regards,

Kaushal

On Tue, May 19, 2015 at 2:36 PM, Kaushal Shriyan <ka...@gmail.com>
wrote:

> Hi DuyHai Doan,
>
> Please find the below details
>
> /opt/test4/share/apache-cassandra/bin/cassandra-cli -h 0
> Connected to: “test” on 0/9160
> Welcome to Cassandra CLI version 1.2.19
>
> Type 'help;' or '?' for help.
> Type 'quit;' or 'exit;' to quit.
>
> [default@unknown] use testrepo;
> Authenticated to keyspace: testrepo
> [default@testrepo] describe test_proxy_revisions_r21;
>
> WARNING: CQL3 tables are intentionally omitted from 'describe' output.
> See https://issues.apache.org/jira/browse/CASSANDRA-4377 for details.
>
>     ColumnFamily: test_proxy_revisions_r21
>       Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
>       Default column value validator:
> org.apache.cassandra.db.marshal.BytesType
>       Cells sorted by:
> org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)
>       GC grace seconds: 864000
>       Compaction min/max thresholds: 4/32
>       Read repair chance: 0.1
>       DC Local Read repair chance: 0.0
>       Populate IO Cache on flush: false
>       Replicate on write: true
>       Caching: KEYS_ONLY
>       Bloom Filter FP chance: default
>       Built indexes: []
>       Compaction Strategy:
> org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
>       Compression Options:
>         sstable_compression:
> org.apache.cassandra.io.compress.SnappyCompressor
> [default@testrepo]
>
>
> Please do let me know if you need any additional information.
>
> Regards,
>
> Kaushal
>
> On Tue, May 19, 2015 at 1:22 PM, DuyHai Doan <do...@gmail.com> wrote:
>
>> Hello Kaushal
>>
>> Humm your schema is using the ancient DynamicCompositeType. Can you just
>> send a describe of the table in cassandra-cli ?
>>
>> On Tue, May 19, 2015 at 9:44 AM, Kaushal Shriyan <
>> kaushalshriyan@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am running cassandra version 1.2.19 and cqlsh version 3.1.8 in my setup
>>>
>>> cqlsh:apprepo> select * from test_proxy_revisions_r21 limit 10 ;
>>> Traceback (most recent call last):
>>>   File "./cqlsh", line 1039, in perform_statement_untraced
>>>     self.cursor.execute(statement, decoder=decoder)
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 81, in execute
>>>     return self.process_execution_results(response, decoder=decoder)
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 116, in process_execution_results
>>>     self.get_metadata_info(self.result[0])
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 97, in get_metadata_info
>>>     name, nbytes, vtype, ctype = self.get_column_metadata(colid)
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 104, in get_column_metadata
>>>     return self.decoder.decode_metadata_and_type(column_id)
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/decoders.py", line 40, in decode_metadata_and_type
>>>     valdtype = cqltypes.lookup_casstype(validator)
>>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cqltypes.py", line 145, in lookup_casstype
>>>     raise ValueError("Don't know how to parse type string %r: %s" % (casstype, e))
>>> ValueError: Don't know how to parse type string 'org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)': weird characters '=>org.apache.cassandra.db.marshal.UTF8Type)' at end
>>>
>>> Any clue?
>>>
>>> Regards,
>>>
>>> Kaushal
>>>
>>
>>
>

Re: cqlsh ValueError: Don't know how to parse type string

Posted by Kaushal Shriyan <ka...@gmail.com>.
Hi DuyHai Doan,

Please find the below details

/opt/test4/share/apache-cassandra/bin/cassandra-cli -h 0
Connected to: “test” on 0/9160
Welcome to Cassandra CLI version 1.2.19

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown] use testrepo;
Authenticated to keyspace: testrepo
[default@testrepo] describe test_proxy_revisions_r21;

WARNING: CQL3 tables are intentionally omitted from 'describe' output.
See https://issues.apache.org/jira/browse/CASSANDRA-4377 for details.

    ColumnFamily: test_proxy_revisions_r21
      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      Default column value validator:
org.apache.cassandra.db.marshal.BytesType
      Cells sorted by:
org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 0.1
      DC Local Read repair chance: 0.0
      Populate IO Cache on flush: false
      Replicate on write: true
      Caching: KEYS_ONLY
      Bloom Filter FP chance: default
      Built indexes: []
      Compaction Strategy:
org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
      Compression Options:
        sstable_compression:
org.apache.cassandra.io.compress.SnappyCompressor
[default@testrepo]


Please do let me know if you need any additional information.

Regards,

Kaushal

On Tue, May 19, 2015 at 1:22 PM, DuyHai Doan <do...@gmail.com> wrote:

> Hello Kaushal
>
> Humm your schema is using the ancient DynamicCompositeType. Can you just
> send a describe of the table in cassandra-cli ?
>
> On Tue, May 19, 2015 at 9:44 AM, Kaushal Shriyan <kaushalshriyan@gmail.com
> > wrote:
>
>> Hi,
>>
>> I am running cassandra version 1.2.19 and cqlsh version 3.1.8 in my setup
>>
>> cqlsh:apprepo> select * from test_proxy_revisions_r21 limit 10 ;
>> Traceback (most recent call last):
>>   File "./cqlsh", line 1039, in perform_statement_untraced
>>     self.cursor.execute(statement, decoder=decoder)
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 81, in execute
>>     return self.process_execution_results(response, decoder=decoder)
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 116, in process_execution_results
>>     self.get_metadata_info(self.result[0])
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 97, in get_metadata_info
>>     name, nbytes, vtype, ctype = self.get_column_metadata(colid)
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 104, in get_column_metadata
>>     return self.decoder.decode_metadata_and_type(column_id)
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/decoders.py", line 40, in decode_metadata_and_type
>>     valdtype = cqltypes.lookup_casstype(validator)
>>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cqltypes.py", line 145, in lookup_casstype
>>     raise ValueError("Don't know how to parse type string %r: %s" % (casstype, e))
>> ValueError: Don't know how to parse type string 'org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)': weird characters '=>org.apache.cassandra.db.marshal.UTF8Type)' at end
>>
>> Any clue?
>>
>> Regards,
>>
>> Kaushal
>>
>
>

Re: cqlsh ValueError: Don't know how to parse type string

Posted by DuyHai Doan <do...@gmail.com>.
Hello Kaushal

Humm your schema is using the ancient DynamicCompositeType. Can you just
send a describe of the table in cassandra-cli ?

On Tue, May 19, 2015 at 9:44 AM, Kaushal Shriyan <ka...@gmail.com>
wrote:

> Hi,
>
> I am running cassandra version 1.2.19 and cqlsh version 3.1.8 in my setup
>
> cqlsh:apprepo> select * from test_proxy_revisions_r21 limit 10 ;
> Traceback (most recent call last):
>   File "./cqlsh", line 1039, in perform_statement_untraced
>     self.cursor.execute(statement, decoder=decoder)
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 81, in execute
>     return self.process_execution_results(response, decoder=decoder)
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py", line 116, in process_execution_results
>     self.get_metadata_info(self.result[0])
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 97, in get_metadata_info
>     name, nbytes, vtype, ctype = self.get_column_metadata(colid)
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cursor.py", line 104, in get_column_metadata
>     return self.decoder.decode_metadata_and_type(column_id)
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/decoders.py", line 40, in decode_metadata_and_type
>     valdtype = cqltypes.lookup_casstype(validator)
>   File "./../lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cqltypes.py", line 145, in lookup_casstype
>     raise ValueError("Don't know how to parse type string %r: %s" % (casstype, e))
> ValueError: Don't know how to parse type string 'org.apache.cassandra.db.marshal.DynamicCompositeType(s=>org.apache.cassandra.db.marshal.UTF8Type)': weird characters '=>org.apache.cassandra.db.marshal.UTF8Type)' at end
>
> Any clue?
>
> Regards,
>
> Kaushal
>