Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-936

Add GUC for array expansion in ORCA optimizer

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0.0-incubating
    • Optimizer
    • None

    Description

      Consider the query with the following pattern select * from foo where foo.a IN

      {1,2,3,...}

      . Currently, when the number of constants in the IN subquery is large, the query optimization time is unacceptable. This is stopping customers from turning Orca on by default since many of the queries are generated queries with such a pattern.
      The root cause is due to the expansion of the IN subquery into an expression in disjunctive normal form. The objective of this story is to disable this expansion when the number of constants in the IN list is large.

      Attachments

        Activity

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

          People

            vraghavan78 Venkatesh Raghavan
            hyuan Haisheng Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment