[GitHub] incubator-hawq pull request #795: HAWQ-860. Fix ORCA wrong plan when correla...

2016-08-01 Thread hsyuan
Github user hsyuan closed the pull request at:

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


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-hawq pull request #795: HAWQ-860. Fix ORCA wrong plan when correla...

2016-07-14 Thread hsyuan
GitHub user hsyuan opened a pull request:

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

HAWQ-860. Fix ORCA wrong plan when correlated subquery contains 
set-returning functions

ORCA 1.633 returns wrong result for the following query:
```sql
select 0 is distinct from (select count(1) from (select unnest(array[1, 2, 
3])) as foo);
?column?
--
 t
 t
 t
(3 rows)
```
Correct result should be:
```sql
?column?
--
 t
(1 row)
```
This bug was fixed by bumping ORCA version to 1.634.

For detail information, see ORCA pull request:
https://github.com/greenplum-db/gporca/pull/49

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

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

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

https://github.com/apache/incubator-hawq/pull/795.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 #795


commit eef9fe3c330119bdeaecc8f5b18382d1b9568e46
Author: Haisheng Yuan and Omer Arap 
Date:   2016-07-14T19:16:40Z

Fix ORCA wrong plan when correlated subquery contains set-returning 
functions




---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---