Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3452

Spatial Join Fails with Indexed Datasets Unless Index-Only Plan is Disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • OTH - Other
    • Patch

    Description

      The spatial join operation fails when both datasets involved in the join have indices. The operation succeeds if one of the datasets does not have an index or if the index-only plan is disabled using the command: SET compiler.indexonly "false";

      Expected Behavior: The spatial join should work seamlessly with indexed datasets without the need to disable the index-only plan.

      Actual Behavior: The spatial join fails when both datasets have indices, indicating an issue with the index-only plan mechanism.

      Workaround: Disabling the index-only plan with the command SET }}compiler.indexonly{{ "false"; allows the spatial join to succeed.

      Attachments:

      1. Queries to replicate the issue.(QueriesToReplicateIssues.txt)
      2. Log trace showcasing the error.(LogTrace.txt)

      Attachments

        1. LogTrace.txt
          12 kB
          Suryaa Charan
        2. QueriesToReplicateIssue.txt
          3 kB
          Suryaa Charan
        3. QueriesToReplicateIssues.txt
          3 kB
          Suryaa Charan

        Activity

          People

            Unassigned Unassigned
            suryaacharan Suryaa Charan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: