GitHub user babokim opened a pull request:
https://github.com/apache/tajo/pull/12
Tajo 830: Some filter conditions with a SUBQUERY are removed by optimizer.
I refactored FilterPushDownRule.
FilterPushDown rule
processing when visits each node
- If a target which is corresponding on a filter EvalNode's column is
not FieldEval, do not PushDown.
- Replace filter EvalNode's column with child node's output column.
If there is no child node's output column, do not PushDown.
- When visit ScanNode, add filter eval to ScanNode's qual
- When visit GroupByNode, Find aggregation column in a filter
EvalNode and
. If a parent is HavingNode, add filter eval to parent HavingNode.
. It not, create new HavingNode and set parent's child.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/babokim/tajo TAJO-830
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/12.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 #12
----
commit 922e4b9d820d7f1330097f16392e3c0c65f2e23b
Author: ê¹íì¤ <[email protected]>
Date: 2014-05-20T17:30:38Z
TAJO-830
commit e8e8efe933269abd147dfb0504f7b57e65a08183
Author: ê¹íì¤ <[email protected]>
Date: 2014-05-20T17:37:21Z
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/tajo
commit d8b4fa9b046c8a04cbd6fcd7a5b6724068ff8b1b
Author: ê¹íì¤ <[email protected]>
Date: 2014-05-20T17:42:14Z
Tajo 830: Some filter conditions with a SUBQUERY are removed by optimizer.
=> Remove unused test code
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---