Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix fmt
  • Loading branch information
Changgyoo Park committed Jun 13, 2024
commit b47605d5d44f49830e16f8332f5624a72e1cd275
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ class SparkConnectClientSuite extends ConnectFunSuite with BeforeAndAfterEach {
.connectionString(s"sc://localhost:${server.getPort}")
.enableReattachableExecute()
.build()
service.errorToThrowOnExecute = Some(new StatusRuntimeException(
Status.INTERNAL.withDescription("INVALID_HANDLE.SESSION_NOT_FOUND")))
service.errorToThrowOnExecute = Some(
new StatusRuntimeException(
Status.INTERNAL.withDescription("INVALID_HANDLE.SESSION_NOT_FOUND")))

val plan = buildPlan("select * from range(1)")
val iter = client.execute(plan)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class ExecutePlanResponseReattachableIterator(
if Option(StatusProto.fromThrowable(ex))
.exists(ex => {
ex.getMessage.contains("INVALID_HANDLE.OPERATION_NOT_FOUND") ||
ex.getMessage.contains("INVALID_HANDLE.SESSION_NOT_FOUND")
ex.getMessage.contains("INVALID_HANDLE.SESSION_NOT_FOUND")
}) =>
if (lastReturnedResponseId.isDefined) {
throw new IllegalStateException(
Expand Down