cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirk True (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4552) cqlsh doesn't handle Int32Type when fully-qualified package name is present
Date Thu, 16 Aug 2012 21:59:37 GMT
Kirk True created CASSANDRA-4552:

             Summary: cqlsh doesn't handle Int32Type when fully-qualified package name is
                 Key: CASSANDRA-4552
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.2.0
         Environment: Today's (08/16/2012) trunk.
            Reporter: Kirk True
            Assignee: Kirk True
             Fix For: 1.2.0

Steps to reproduce:

1. Start Cassandra
2. Start cqlsh: {{./bin/cqlsh -3 --debug}}
3. Execute these statements:

create keyspace foo with strategy_class = 'SimpleStrategy' and strategy_options:replication_factor=1;
use foo;
create table bar (
    a int,
    b int,
    primary key (a)
insert into bar (a, b) values (1, 1);
select * from bar;

Expected: to see my row results
Actual: I see this error:

Traceback (most recent call last):
  File "./bin/cqlsh", line 926, in onecmd
    self.handle_statement(st, statementtext)
  File "./bin/cqlsh", line 954, in handle_statement
    return custom_handler(parsed)
  File "./bin/cqlsh", line 1015, in do_select
    self.perform_statement(parsed.extract_orig(), decoder=decoder)
  File "./bin/cqlsh", line 1042, in perform_statement
  File "./bin/cqlsh", line 1096, in print_result
  File "./bin/cqlsh", line 1112, in print_static_result
    formatted_data = [map(self.myformat_value, row, coltypes) for row in cursor]
  File "./bin/cqlsh", line 622, in myformat_value
    float_precision=self.display_float_precision, **kwargs)
  File "./bin/cqlsh", line 504, in format_value
    escapedval = val.replace('\\', '\\\\')
AttributeError: 'int' object has no attribute 'replace'

This is similar to CASSANDRA-4083 in terms of the error message, but may be of a different

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message