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

SELECT * FROM cf WHERE (id=1) AND (id=1); error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Later
    • None
    • None
    • None

    Description

      Error: CQLSTATE[HY000] [2] id cannot be restricted by more than one relation if it includes an Equal

      Actual query is with UUID type, 1's are just for short. The column 'id' is the only primary key in column family.

      The expression is perfectly logically valid and resolves to one or none record.

      It was generated by framework's DBAL as the result of narrowing down the query. Fixing it on application side will take deep heavy rewrite of all DB libs in all languages.

      Attachments

        Activity

          People

            blerer Benjamin Lerer
            nsv Sergey Nagaytsev
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: