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

Regression in 2.0.x - Cql3 reader returns duplicate rows if the cluster column is reversed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.8, 2.1 rc1
    • None
    • None
    • Normal

    Description

      To reproduce it,

      cqlsh:test> select * from wordfreq;

      title | occurances | word
      ------------------------
      alex123 | 4 | liu3
      alex1 | 23456 | liu2
      alex10 | 10 | liu10
      alex12 | 34 | liu3
      alex | 123456 | liu1
      alex | 1000 | liu

      CREATE TABLE wordfreq ( title text, word text, occurances int, PRIMARY KEY (title,occurances)) WITH CLUSTERING ORDER by (occurances DESC);

      The hadoop job returns 7 rows instead of 6 rows.

      I will post a patch soon.

      Attachments

        1. 7100-2.0-branch.txt
          3 kB
          Alex Liu

        Issue Links

          Activity

            People

              alexliu68 Alex Liu
              rohitbrai Rohit Rai
              Alex Liu
              Piotr Kolaczkowski
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: