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/05/27 15:23:42 UTC

[GitHub] [spark] LuciferYang commented on a diff in pull request #41336: [SPARK-43821][CONNECT][TESTS] Make the prompt for `findJar` method in IntegrationTestUtils clearer

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


##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/connect/client/util/IntegrationTestUtils.scala:
##########
@@ -102,9 +102,14 @@ object IntegrationTestUtils {
       sbtName: String,
       mvnName: String,
       test: Boolean = false): File = {
-    val jar = tryFindJar(path, sbtName, mvnName, test).getOrElse(
-      throw new RuntimeException(
-        s"Failed to find the jar inside folder: ${getTargetFilePath(path)}"))
+    val jar = tryFindJar(path, sbtName, mvnName, test).getOrElse({

Review Comment:
   cc @zhenlineo 



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