liyafan82 commented on a change in pull request #2027:
URL: https://github.com/apache/calcite/pull/2027#discussion_r442019191



##########
File path: core/src/main/java/org/apache/calcite/plan/ConventionTraitDef.java
##########
@@ -234,10 +234,10 @@ private ConversionData getConversionData(RelOptPlanner 
planner) {
       return pathMap;
     }
 
-    public List<Convention> getShortestPath(
+    public int getShortestDistance(

Review comment:
       @xndai I have revised the getPaths() method accordingly. Thank you.
   
   @rubenada Thanks a lot for your suggestion. I tend to agree with @xndai. If 
getting shortest paths is not a frequently used operation, there is no need to 
store all pairs of shortest paths. Here, we preserve the getShortestPath API, 
mainly for the sake of backward compatibility. 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to