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

Cql3 reader returns duplicate rows if the cluster column is reversed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.9
    • 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. 5718-1.2-branch.txt
          3 kB
          Alex Liu
        2. 5718-2-1.2-branch.txt
          2 kB
          Alex Liu
        3. 5718-3-1.2-branch.txt
          3 kB
          Alex Liu

        Issue Links

          Activity

            People

              alexliu68 Alex Liu
              alexliu68 Alex Liu
              Alex Liu
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: