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/17 19:40:26 UTC

incubator-quickstep git commit: Fixed the bug.

Repository: incubator-quickstep
Updated Branches:
  refs/heads/fuse-join-with-select e763de0ef -> 29ded9efd


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/29ded9ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/29ded9ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/29ded9ef

Branch: refs/heads/fuse-join-with-select
Commit: 29ded9efd2c31b65ca4b4b531d45dcad98a08d88
Parents: e763de0
Author: Hakan Memisoglu <ha...@gmail.com>
Authored: Wed Aug 17 14:39:40 2016 -0500
Committer: Hakan Memisoglu <ha...@gmail.com>
Committed: Wed Aug 17 14:39:40 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/29ded9ef/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(),