xiedeyantu commented on code in PR #4827:
URL: https://github.com/apache/calcite/pull/4827#discussion_r2903904390
##########
core/src/main/java/org/apache/calcite/plan/RelTraitSet.java:
##########
@@ -375,37 +389,67 @@ public RelTraitSet getDefaultSansConvention() {
* {@link RelDistributionTraitDef#INSTANCE}, or null if the
* {@link RelDistributionTraitDef#INSTANCE} is not registered
* in this traitSet.
+ *
+ * <p>If multiple distribution values are present (a composite trait), the
+ * first one is returned. Use {@link #getTraits(RelTraitDef)} with
+ * {@link RelDistributionTraitDef#INSTANCE} to retrieve all values.
*/
@SuppressWarnings("unchecked")
public <T extends RelDistribution> @Nullable T getDistribution() {
Review Comment:
This was indeed an overlooked point, and I've already made corrections based
on the comments. I'm not sure if this PR will be useful, as it doesn't address
the root cause.
--
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]