juliuszsompolski commented on code in PR #46971:
URL: https://github.com/apache/spark/pull/46971#discussion_r1638033736
##########
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:
nit: this test probably doesn't need such a large query, doing just a
range(100) may maybe shave 50-100ms or sth, which is not a lot but adds up in
thousands of tests...
--
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]