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

Cannot call a column 'timestamp'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • 2.1.2
    • None
    • [cqlsh 5.0.1 | Cassandra 2.1.1 | CQL spec 3.2.0 | Native protocol v3]

    • Low

    Description

      create table test(date text, timestamp timeuuid, stuff text, PRIMARY KEY(date, timestamp));
      insert into test(date, timestamp, stuff) values ('20141030', now(), 'test');
      insert into test(date, timestamp, stuff) values ('20141030', now(), 'test');
      insert into test(date, timestamp, stuff) values ('20141030', now(), 'test');
      select * from test where date = '20141030' order by timestamp limit 1;
      Traceback (most recent call last):
        File "bin/cqlsh", line 861, in onecmd
          self.handle_statement(st, statementtext)
        File "bin/cqlsh", line 901, in handle_statement
          return self.handle_parse_error(cmdword, tokens, parsed, srcstr)
        File "bin/cqlsh", line 910, in handle_parse_error
          return self.perform_statement(cqlruleset.cql_extract_orig(tokens, srcstr))
        File "bin/cqlsh", line 935, in perform_statement
          result = self.perform_simple_statement(stmt)
        File "bin/cqlsh", line 968, in perform_simple_statement
          self.print_result(rows, self.parse_for_table_meta(statement.query_string))
        File "bin/cqlsh", line 946, in parse_for_table_meta
          parsed = cqlruleset.cql_parse(query_string)[1]
      IndexError: list index out of range
      

      Attachments

        Issue Links

          Activity

            People

              mishail Mikhail Stepura
              sparkprime Dave Cunningham
              Mikhail Stepura
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: