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

WHERE (c1,c2) IN ((v1,v2),(v3,v4)) fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • Normal

    Description

      Query:

      SELECT * FROM some_acl WHERE (entity, entity_sub, res, role, right) IN ((34ea33b0-ebc7-11e3-ac10-0800200c9a66, 65a72940-ebc7-11e3-ac10-0800200c9a66, 1, 1, 1), (34ea33b0-ebc7-11e3-ac10-0800200c9a66, 65a72940-ebc7-11e3-ac10-0800200c9a66, 1, 1, 2))

      Table:

      CREATE COLUMNFAMILY some_acl (
      entity uuid,
      entity_sub uuid,
      res int,
      role int,
      right int,
      ok boolean,
      PRIMARY KEY ( entity,entity_sub,res,role,right )
      );

      Error:
      CQLSTATE[HY000] [2] line 1:164 missing EOF at ','
      (position of comma between two value groups)

      P.S. Maybe this can be replaced by huge WHERE (( c1=v1 AND c2=v2) OR (..)) AND ( other=condition ) in user's framework/DBAL, and is the parsing problem, not data access one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nsv Sergey Nagaytsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: