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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.2
    • None
    • Ubuntu 14.04 64-bit, Oracle Java 1.7.0_72

    • Normal

    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

              philipthompson Philip Thompson
              lexlythius Lex Lythius
              Philip Thompson
              Mikhail Stepura
              Philip Thompson Philip Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: