xiedeyantu commented on code in PR #4585:
URL: https://github.com/apache/calcite/pull/4585#discussion_r2440452268
##########
core/src/main/java/org/apache/calcite/rel/RelCollationTraitDef.java:
##########
@@ -87,4 +141,45 @@ private RelCollationTraitDef() {
RelOptPlanner planner, RelCollation fromTrait, RelCollation toTrait) {
return true;
}
+
+ /**
+ * Associates an optimized collation with its original collation.
+ * Used to preserve optimization history for trait satisfaction checking.
+ * The association is scoped to the planner's lifecycle.
+ */
+ public static void setOriginalCollation(
Review Comment:
I have change this name to registerCollationMapping.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]