You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2023/02/27 15:07:09 UTC

[GitHub] [spark] LuciferYang commented on a diff in pull request #40191: [SPARK-42599][CONNECT][INFRA] Introduce `dev/connect-jvm-client-mima-check` instead of `CompatibilitySuite`

LuciferYang commented on code in PR #40191:
URL: https://github.com/apache/spark/pull/40191#discussion_r1118875575


##########
tools/src/main/scala/org/apache/spark/tools/CheckConnectJvmClientCompatibility.scala:
##########
@@ -182,37 +201,67 @@ class CompatibilitySuite extends ConnectFunSuite {
 
       // RuntimeConfig
       ProblemFilters.exclude[Problem]("org.apache.spark.sql.RuntimeConfig.this"))
-    val problems = allProblems
+    allProblems
       .filter { p =>
         includedRules.exists(rule => rule(p))
       }
       .filter { p =>
         excludeRules.forall(rule => rule(p))
       }
+  }
 
-    if (problems.nonEmpty) {
-      fail(
-        s"\nComparing client jar: $clientJar\nand sql jar: $sqlJar\n" +
-          problems.map(p => p.description("client")).mkString("\n"))
+  private def checkDatasetApiCompatibility(clientJar: File, sqlJar: File): Array[String] = {

Review Comment:
   The mima check failed now due to there are 4 incompatible Apis between Dataset in sql module and  Dataset  in connect-client-jvm module with current comparison way, this is the right result.
   
   <img width="1035" alt="image" src="https://user-images.githubusercontent.com/1475305/221600356-f4a555ef-449d-47b1-8ec8-47369009c810.png">
   
   
   
   
   



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org