Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18897

CMISQL queries on multi-valued properties fail on DBS MongoDB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10-HF04, 8.2
    • Component/s: CMIS, Core MongoDB

      Description

      When doing a CMISQL query like:

      SELECT cmis:name FROM File WHERE ANY dc:contributors IN ('pete', 'bob')

      This is translated to NXQL:

      SELECT DISTINCT dc:title, ecm:uuid, ecm:primaryType FROM Document WHERE ecm:primaryType IN ('File', 'ComplexFile') AND ecm:currentLifeCycleState <> 'deleted' AND ecm:isProxy = 0 AND dc:contributors/* = 'pete'
      

      Which fails because DBS cannot interpret DISTINCT:

      Invalid query: CMISQL: SELECT cmis:name FROM File WHERE 'pete' = ANY dc:contributors, Failed to execute query: NXQL: SELECT DISTINCT dc:title, ecm:uuid, ecm:primaryType FROM Document WHERE ecm:primaryType IN ('File', 'ComplexFile') AND ecm:currentLifeCycleState <> 'deleted' AND ecm:isProxy = 0 AND dc:contributors/* = 'pete', SELECT DISTINCT not supported on DBS

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: