shrirangmhalgi commented on code in PR #56497:
URL: https://github.com/apache/spark/pull/56497#discussion_r3415193959
##########
python/pyspark/sql/connect/client/reattach.py:
##########
@@ -295,7 +323,7 @@ def _call_iter(self, iter_fun: Callable) -> Any:
self._iterator = iter(
self._stub.ExecutePlan(
self._initial_request,
- metadata=self._metadata,
+ metadata=self._metadata_provider(),
Review Comment:
Nit (Non Blocking): `_permission_denied_retried` isn't reset when
`INVALID_HANDLE.OPERATION_NOT_FOUND` triggers a fresh ExecutePlan. If the
sequence is `PERMISSION_DENIED → OPERATION_NOT_FOUND → fresh ExecutePlan →
PERMISSION_DENIED`, the second denial propagates even though the stream is
logically new. Probably fine as-is (conservative budget design), just noting
for completeness.
--
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]