juliuszsompolski commented on code in PR #46971:
URL: https://github.com/apache/spark/pull/46971#discussion_r1638034578
##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/connect/client/SparkConnectClientSuite.scala:
##########
@@ -530,6 +530,24 @@ class SparkConnectClientSuite extends ConnectFunSuite with
BeforeAndAfterEach {
assert(reattachableIter.resultComplete)
}
+ test("SPARK-48056: Client execute gets INVALID_HANDLE.SESSION_NOT_FOUND and
proceeds") {
+ startDummyServer(0)
+ client = SparkConnectClient
+ .builder()
+ .connectionString(s"sc://localhost:${server.getPort}")
+ .enableReattachableExecute()
+ .build()
+ service.errorToThrowOnExecute = Some(new StatusRuntimeException(
+ Status.INTERNAL.withDescription("INVALID_HANDLE.SESSION_NOT_FOUND")))
+
+ val plan = buildPlan("select * from range(10000000)")
Review Comment:
edit: even better, make it just a `select 1`, no need to launch any Spark
jobs
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]