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

SELECT ... TOKEN() function broken in C* 2.1.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:
    • Environment:

      Ubuntu 14.04 64-bit, Oracle Java 1.7.0_72

    • Severity:
      Normal
    • Since Version:

      Description

      Cassandra 2.1.1, Oracle Java 1.7.0_72, Ubuntu 14.04.1 64 bit
      cqlsh:blink> show version;
      [cqlsh 5.0.1 | Cassandra 2.1.1 | CQL spec 3.2.0 | Native protocol v3]
      cqlsh:blink> select token(id) from users limit 1;
      list index out of range
      

      versus

      Cassandra 2.1.0, Oracle Java 1.7.0_67, Ubuntu 12.04.5 64 bit
      cqlsh:blink> show version;
      [cqlsh 5.0.1 | Cassandra 2.1.0 | CQL spec 3.2.0 | Native protocol v3]
      cqlsh:blink> select token(id) from users limit 1;
      
       token(id)
      ----------------------
       -9223237793432919630
      
      (1 rows)
      

      It also fails with C* 2.1.1, Java 1.7.0_72, Ubuntu 12.04.5.

        Attachments

        1. cassandra-2.1-8258-3.txt
          2 kB
          Philip Thompson
        2. cassandra-2.1-8258-2.txt
          2 kB
          Philip Thompson
        3. cassandra-2.1-8258-1.txt
          0.9 kB
          Philip Thompson

          Issue Links

            Activity

              People

              • Assignee:
                philipthompson Philip Thompson
                Reporter:
                lexlythius Lex Lythius
                Authors:
                Philip Thompson
                Reviewers:
                Mikhail Stepura
                Tester:
                Philip Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: