grundprinzip commented on code in PR #42377:
URL: https://github.com/apache/spark/pull/42377#discussion_r1311663301
##########
connector/connect/common/src/main/scala/org/apache/spark/sql/connect/client/CustomSparkConnectBlockingStub.scala:
##########
@@ -27,11 +27,15 @@ private[client] class CustomSparkConnectBlockingStub(
retryPolicy: GrpcRetryHandler.RetryPolicy) {
private val stub = SparkConnectServiceGrpc.newBlockingStub(channel)
+
private val retryHandler = new GrpcRetryHandler(retryPolicy)
+ // Constructing GrpcExceptionConverter with a GRPC stub for fetching error
details from server.
+ private val grpcExceptionConverter = new GrpcExceptionConverter(stub)
+
def executePlan(request: ExecutePlanRequest):
CloseableIterator[ExecutePlanResponse] = {
- GrpcExceptionConverter.convert {
- GrpcExceptionConverter.convertIterator[ExecutePlanResponse](
+ grpcExceptionConverter.convert {
+ grpcExceptionConverter.convertIterator[ExecutePlanResponse](
Review Comment:
you can get the session ID and User ID from here
--
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]