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

Computing expected schema fails on repeated expressions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.9
    • 0.9.10
    • COMP - Compiler

    Description

      SELECT ht.name, ht.phone,
      ARRAY_COUNT(ht.reviews) AS num_reviews,
      (SELECT VALUE MIN(ratings.Overall) FROM ht.reviews)[0] AS overall_avg,
      (SELECT VALUE ratings.Overall FROM ht.reviews) AS overall_reviews
      FROM ColumnDataset ht
      WHERE ht.city = 'Los Angeles'
      ORDER BY overall_avg DESC
      LIMIT 5; 

      Fails with:

      java.lang.IllegalStateException: Cannot replace OBJECT with ANY 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            wyk Wail Y. Alkowaileet
            wyk Wail Y. Alkowaileet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment