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

Failing to create open array indexes of multiple UNNESTs + record types.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • IDX - Indexes
    • None

    Description

      The following CREATE INDEX throws an error:

      DROP DATAVERSE    TestDataverse IF EXISTS;
      CREATE DATAVERSE  TestDataverse;
      USE               TestDataverse;
      CREATE TYPE       TestType AS {
        _id: uuid
      };
      CREATE DATASET    Dataset1 (TestType)
      PRIMARY KEY       _id AUTOGENERATED;
      CREATE INDEX      d1Idx
      ON                Dataset1 ( UNNEST f1.f2
                                   SELECT f3 : bigint );
      

      An CREATE INDEX like "UNNEST f1.f2" works, but adding the SELECT throws an error.

      Attachments

        Activity

          People

            ggalvizo Glenn Justo Galvizo
            ggalvizo Glenn Justo Galvizo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: