-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix](nereids)LogicalPlanDeepCopier will lost some info when coping logical relation #34894
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 39809 ms
|
TPC-DS: Total hot run time: 186053 ms
|
ClickBench: Total hot run time: 30.59 s
|
@@ -101,6 +101,11 @@ public Plan withGroupExprLogicalPropChildren(Optional<GroupExpression> groupExpr | |||
return new UnboundTVFRelation(relationId, functionName, properties, groupExpression, logicalProperties); | |||
} | |||
|
|||
@Override | |||
public UnboundTVFRelation withRelationId(RelationId relationId) { | |||
throw new RuntimeException("should not call UnboundTVFRelation's withRelationId method"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnboundException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
visitLogicalDeferMaterializeOlapScan should also add to relation id map
Optional.empty(), Optional.empty(), | ||
selectedPartitionIds, partitionPruned, selectedTabletIds, | ||
selectedIndexId, indexSelected, preAggStatus, manuallySpecifiedPartitions, | ||
hints, cacheSlotWithSlotName, tableSample, directMvScan, projectPulledUp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cacheSlotWithSlotName should be removed
@@ -89,6 +89,11 @@ public Plan withGroupExprLogicalPropChildren(Optional<GroupExpression> groupExpr | |||
return new LogicalOneRowRelation(relationId, projects, groupExpression, logicalProperties); | |||
} | |||
|
|||
@Override | |||
public LogicalOneRowRelation withRelationId(RelationId relationId) { | |||
return new LogicalOneRowRelation(relationId, projects, Optional.empty(), Optional.empty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not impl, throw exception
@@ -81,6 +81,11 @@ public Plan withGroupExprLogicalPropChildren(Optional<GroupExpression> groupExpr | |||
return new LogicalEmptyRelation(relationId, projects, groupExpression, logicalProperties); | |||
} | |||
|
|||
@Override | |||
public LogicalEmptyRelation withRelationId(RelationId relationId) { | |||
return new LogicalEmptyRelation(relationId, projects, Optional.empty(), Optional.empty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw exception
660d50d
to
ca4db85
Compare
run buildall |
run buildall |
run buildall |
TPC-H: Total hot run time: 40696 ms
|
TPC-DS: Total hot run time: 187627 ms
|
ClickBench: Total hot run time: 30.45 s
|
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 41971 ms
|
TPC-DS: Total hot run time: 186308 ms
|
ClickBench: Total hot run time: 30.91 s
|
TPC-DS: Total hot run time: 187104 ms
|
ClickBench: Total hot run time: 30.56 s
|
run performance |
…ogical relation (#34894)
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
intro by PR apache#34894 This PR attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the outer structure.
…apache#35076) intro by PR apache#34894 PR apache#34894 attempts to address the issue of losing conjuncts when performing a deep copy of the outer structure. However, the timing of copying the conjuncts is incorrect, resulting in the inability to map slots within the conjuncts to the output of the scan.
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...