You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/04/01 12:10:56 UTC

[GitHub] [flink] sunjincheng121 commented on a change in pull request #8070: [FLINK-12026][table]Remove the `xxxInternal` method from TableImpl

sunjincheng121 commented on a change in pull request #8070: [FLINK-12026][table]Remove the `xxxInternal` method from TableImpl
URL: https://github.com/apache/flink/pull/8070#discussion_r270836495
 
 

 ##########
 File path: flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/tableImpl.scala
 ##########
 @@ -184,46 +168,46 @@ class TableImpl(
   }
 
   override def join(right: Table): Table = {
-    joinInternal(right, None, JoinType.INNER)
+    join(right, None, JoinType.INNER)
   }
 
   override def join(right: Table, joinPredicate: String): Table = {
     join(right, ExpressionParser.parseExpression(joinPredicate))
   }
 
   override def join(right: Table, joinPredicate: Expression): Table = {
-    joinInternal(right, Some(joinPredicate), JoinType.INNER)
+    join(right, Some(joinPredicate), JoinType.INNER)
   }
 
   override def leftOuterJoin(right: Table): Table = {
-    joinInternal(right, None, JoinType.LEFT_OUTER)
+    join(right, None, JoinType.LEFT_OUTER)
   }
 
   override def leftOuterJoin(right: Table, joinPredicate: String): Table = {
     leftOuterJoin(right, ExpressionParser.parseExpression(joinPredicate))
   }
 
   override def leftOuterJoin(right: Table, joinPredicate: Expression): Table = {
-    joinInternal(right, Some(joinPredicate), JoinType.LEFT_OUTER)
+    join(right, Some(joinPredicate), JoinType.LEFT_OUTER)
   }
 
   override def rightOuterJoin(right: Table, joinPredicate: String): Table = {
     rightOuterJoin(right, ExpressionParser.parseExpression(joinPredicate))
   }
 
   override def rightOuterJoin(right: Table, joinPredicate: Expression): Table = {
-    joinInternal(right, Some(joinPredicate), JoinType.RIGHT_OUTER)
+    join(right, Some(joinPredicate), JoinType.RIGHT_OUTER)
   }
 
   override def fullOuterJoin(right: Table, joinPredicate: String): Table = {
     fullOuterJoin(right, ExpressionParser.parseExpression(joinPredicate))
   }
 
   override def fullOuterJoin(right: Table, joinPredicate: Expression): Table = {
-    joinInternal(right, Some(joinPredicate), JoinType.FULL_OUTER)
+    join(right, Some(joinPredicate), JoinType.FULL_OUTER)
   }
 
-  private def joinInternal(
+  private def join(
 
 Review comment:
   There is a concern about whether we should do this change or not? `joinInternal`->`join`. Because if we using `join` the API is pretty clean, and if we using `joinInternal` also make scenes, due to we can not merge `joinInternal` logic into any `join` method.
   do you mind do this change @dawidwys ?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services