You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by hsyuan <gi...@git.apache.org> on 2016/07/19 00:35:58 UTC

[GitHub] incubator-hawq pull request #800: HAWQ-936. Add GUC for array expansion in O...

GitHub user hsyuan opened a pull request:

    https://github.com/apache/incubator-hawq/pull/800

    HAWQ-936. Add GUC for array expansion in ORCA optimizer

    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 patch is to add a guc
    parameter 'optimizer_array_expansion_threshold' to control the maximum
    number of array elements in IN array list. By default, the GUC value is
    set to 25, which means if the array size is larger than 25, the array
    expansion is disabled.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hsyuan/incubator-hawq HAWQ-936

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-hawq/pull/800.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #800
    
----
commit 6acc01abbd22ad17ad041d122f01aa072b48a9f6
Author: Haisheng Yuan and Lubomir Petrov <hy...@pivotal.io>
Date:   2016-07-19T00:05:14Z

    HAWQ-936. Add GUC for array expansion in ORCA optimizer
    
    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 patch is to add a guc
    parameter 'optimizer_array_expansion_threshold' to control the maximum
    number of array elements in IN array list. By default, the GUC value is
    set to 25, which means if the array size is larger than 25, the array
    expansion is disabled.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq issue #800: HAWQ-936. Add GUC for array expansion in ORCA opt...

Posted by changleicn <gi...@git.apache.org>.
Github user changleicn commented on the issue:

    https://github.com/apache/incubator-hawq/pull/800
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq pull request #800: HAWQ-936. Add GUC for array expansion in O...

Posted by hsyuan <gi...@git.apache.org>.
Github user hsyuan closed the pull request at:

    https://github.com/apache/incubator-hawq/pull/800


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq issue #800: HAWQ-936. Add GUC for array expansion in ORCA opt...

Posted by hsyuan <gi...@git.apache.org>.
Github user hsyuan commented on the issue:

    https://github.com/apache/incubator-hawq/pull/800
  
    pushed to master:
    https://github.com/apache/incubator-hawq/commit/950065bb0db627992be6b96afb4671b3c5ab1c90


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq issue #800: HAWQ-936. Add GUC for array expansion in ORCA opt...

Posted by vraghavan78 <gi...@git.apache.org>.
Github user vraghavan78 commented on the issue:

    https://github.com/apache/incubator-hawq/pull/800
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-hawq issue #800: HAWQ-936. Add GUC for array expansion in ORCA opt...

Posted by hsyuan <gi...@git.apache.org>.
Github user hsyuan commented on the issue:

    https://github.com/apache/incubator-hawq/pull/800
  
    This PR will give https://github.com/apache/incubator-hawq/pull/795 a free ride.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---