[
https://issues.apache.org/jira/browse/TRAFODION-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655060#comment-15655060
]
ASF GitHub Bot commented on TRAFODION-1562:
-------------------------------------------
Github user sandhyasun commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/826#discussion_r87479021
--- Diff: core/sql/optimizer/BindRelExpr.cpp ---
@@ -2436,6 +2437,32 @@ Scan *RelExpr::getLeftmostScanNode() const
return (Scan *)result;
}
+
+
+Join * RelExpr::getLeftJoinChild() const
+{
+ RelExpr *result = (RelExpr *)this;
+
+ while(result)
+ {
+ if (result->getOperatorType() == REL_LEFT_JOIN) break;
+ result = result->child(0);
--- End diff --
This is cloned from the existing method getLeftMostScanNode(). They can
atmost return NULL which is ok.
> Changes in query tree when the upsert command is transformed into merge
> -----------------------------------------------------------------------
>
> Key: TRAFODION-1562
> URL: https://issues.apache.org/jira/browse/TRAFODION-1562
> Project: Apache Trafodion
> Issue Type: Sub-task
> Components: sql-cmp
> Reporter: Selvaganesan Govindarajan
> Assignee: Sandhya Sundaresan
> Attachments: BatchUpsertTransformation.pdf
>
>
> to improve the performance as explained in the main JIRA
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)