Repository: trafodion
Updated Branches:
  refs/heads/master 611bc92be -> 45073a453


[TRAFODION-3021] union, intersect, except should be cacheable


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/e2b9a66d
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/e2b9a66d
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/e2b9a66d

Branch: refs/heads/master
Commit: e2b9a66d92f63e01f897f1ca1d7f3a6801a52756
Parents: 6ca1d0f
Author: Liu Ming <[email protected]>
Authored: Fri Apr 13 22:13:53 2018 -0400
Committer: Liu Ming <[email protected]>
Committed: Fri Apr 13 22:13:53 2018 -0400

----------------------------------------------------------------------
 core/sql/optimizer/RelExpr.cpp | 4 ++--
 core/sql/optimizer/RelSet.h    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/e2b9a66d/core/sql/optimizer/RelExpr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/RelExpr.cpp b/core/sql/optimizer/RelExpr.cpp
index 5096b8b..42efa8c 100644
--- a/core/sql/optimizer/RelExpr.cpp
+++ b/core/sql/optimizer/RelExpr.cpp
@@ -6688,7 +6688,7 @@ void Join::rewriteNotInPredicate( ValueIdSet & 
origVidSet, ValueIdSet & newVidSe
 Intersect::Intersect(RelExpr *leftChild,
             RelExpr *rightChild)
 : RelExpr(REL_INTERSECT, leftChild, rightChild)
-{ setNonCacheable(); }
+{ }
 
 Intersect::~Intersect() {}
 
@@ -6705,7 +6705,7 @@ const NAString Intersect::getText() const
 Except::Except(RelExpr *leftChild,
              RelExpr *rightChild)
 : RelExpr(REL_EXCEPT, leftChild, rightChild)
-{ setNonCacheable(); }
+{ }
 
 Except::~Except() {}
 

http://git-wip-us.apache.org/repos/asf/trafodion/blob/e2b9a66d/core/sql/optimizer/RelSet.h
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/RelSet.h b/core/sql/optimizer/RelSet.h
index 3425379..2f462d7 100644
--- a/core/sql/optimizer/RelSet.h
+++ b/core/sql/optimizer/RelSet.h
@@ -176,7 +176,7 @@ public:
        OperatorTypeEnum otype = REL_UNION,
        CollHeap *outHeap = CmpCommon::statementHeap(),
     NABoolean sysGenerated = FALSE,
-    NABoolean mayBeCacheable = FALSE
+    NABoolean mayBeCacheable = TRUE
   );
 
   // copy ctor

Reply via email to