You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by ha...@apache.org on 2016/08/23 19:04:19 UTC
[6/6] incubator-quickstep git commit: Fixed the bug.
Fixed the bug.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/866287ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/866287ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/866287ba
Branch: refs/heads/fuse-join-with-select
Commit: 866287ba526f41ce6835cb0eb06df1cd6510dd92
Parents: 8427d06
Author: Hakan Memisoglu <ha...@gmail.com>
Authored: Wed Aug 17 14:39:40 2016 -0500
Committer: hakanmem <ha...@node-2.fuse-join-select.quickstep-pg0.wisc.cloudlab.us>
Committed: Tue Aug 23 13:57:22 2016 -0500
----------------------------------------------------------------------
query_optimizer/rules/FuseJoinSelect.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/866287ba/query_optimizer/rules/FuseJoinSelect.cpp
----------------------------------------------------------------------
diff --git a/query_optimizer/rules/FuseJoinSelect.cpp b/query_optimizer/rules/FuseJoinSelect.cpp
index 6a8885f..e40acfc 100644
--- a/query_optimizer/rules/FuseJoinSelect.cpp
+++ b/query_optimizer/rules/FuseJoinSelect.cpp
@@ -23,8 +23,8 @@ P::PhysicalPtr FuseJoinSelect::applyToNode(const P::PhysicalPtr &input) {
&& P::SomeSelection::MatchesWithConditionalCast(hash_join->left(), &selection)
&& P::SomeTableReference::MatchesWithConditionalCast(selection->input(), &table_reference)) {
const E::PredicatePtr filter_predicate = selection->filter_predicate();
- P::PhysicalPtr output = P::HashJoin::Create(hash_join->left(),
- table_reference,
+ P::PhysicalPtr output = P::HashJoin::Create(table_reference,
+ hash_join->right(),
hash_join->left_join_attributes(),
hash_join->right_join_attributes(),
hash_join->residual_predicate(),