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/04/18 10:08:26 UTC

[GitHub] [spark] LuciferYang commented on a diff in pull request #40837: [SPARK-43173][CONNECT][TESTS] Ignore `write jdbc` when test `ClientE2ETestSuite` without `-Phive`

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


##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala:
##########
@@ -193,6 +193,7 @@ class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper {
   }
 
   test("write jdbc") {
+    assume(IntegrationTestUtils.isSparkHiveJarAvailable)

Review Comment:
   `derby.jar` will only be copied to `assembly/target/scala-xxx/jars/` when build with -Phive, so there check `isSparkHiveJarAvailable`, maybe a little trick.
     
   Another way is to check if  `derby-xxx.jar` is in the `assembly/target/scala-xxx/jars/` directory.
   
   
   
   



##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala:
##########
@@ -193,6 +193,7 @@ class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper {
   }
 
   test("write jdbc") {
+    assume(IntegrationTestUtils.isSparkHiveJarAvailable)

Review Comment:
   `derby.jar` will only be copied to `assembly/target/scala-xxx/jars/` when build with `-Phive`, so there check `isSparkHiveJarAvailable`, maybe a little trick.
     
   Another way is to check if  `derby-xxx.jar` is in the `assembly/target/scala-xxx/jars/` directory.
   
   
   
   



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