YannByron commented on code in PR #11431:
URL: https://github.com/apache/paimon/pull/11431#discussion_r4691417712


##########
paimon-python/pypaimon/read/read_dispatch.py:
##########
@@ -185,7 +186,7 @@ def to_arrow(
         splits,
         schema,
         parallelism=effective,
-        blob_parallelism=effective_bp,
+        blob_parallelism=blob_parallelism,

Review Comment:
   Confirmed and reproduced both failures with runtime 0.5.0. The Rust fix is 
in https://github.com/apache/paimon-rust/pull/1548: only 429 is retried, with 
at most three retries and 30 seconds of cumulative sleeps; delta-seconds and 
HTTP-date Retry-After are respected, including rejecting excessive delays 
rather than retrying early. Successful response bodies are not replayed.
   
   P3 commit c3e0a8e9c9 adds the real four-in-flight HTTP-origin regression for 
both Arrow APIs, validates all eight payloads and the one-second retry delay, 
and exposes ScanQuery.to_arrow(blob_parallelism=1). Both default cases fail on 
0.5.0 and pass with the development wheel from Rust 2f801821; the serial scan 
control also passes. The complete native BLOB suite passed 74 tests with that 
wheel.
   
   I have made this PR draft. It must wait for the Rust fix to be 
merged/released and the minimum runtime dependency to be raised; the new 
regressions are not skipped to hide the old-runtime failure.



##########
paimon-python/pypaimon/read/table_read.py:
##########
@@ -206,12 +207,13 @@ def to_arrow(
                 serially when a limit may discard rows, so discarded payloads
                 are not fetched by speculative split workers.
             blob_parallelism: maximum concurrent blob range reads within each
-                split reader. ``None`` or ``1`` (default) reads blobs serially;
-                ``>= 2`` enables concurrent ranged reads. On the
-                parallel path, peak blob threads (``parallelism`` *
-                ``blob_parallelism``) are capped at
-                ``_MAX_TOTAL_BLOB_WORKERS``; per-split ``blob_parallelism`` is
-                shrunk to stay within it.
+                split reader. ``None`` uses the native reader default (8), or 1
+                for Python reads and native preparation fallback. Explicit 
``1``
+                keeps BLOB reads serial within each split; values must be >= 1.
+                Native execution caps active BLOB split groups and their 
combined
+                range reads at 64, reducing per-group concurrency using the 
actual
+                number of active groups. Python parallel reads also cap 
combined
+                BLOB workers at 64.

Review Comment:
   Agreed; the previous wording overstated the Python guarantee. Commit 
c3e0a8e9c9 corrects both Arrow API docstrings, the BLOB guide, and the helper 
docstrings. They now describe Python's per-split reduction with a floor of one, 
explicitly including the 65-worker counterexample. The hard 64 range-read cap 
is qualified as per-read native execution that materializes BLOB payloads. This 
documentation correction does not change Python scheduling behavior.



-- 
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]

Reply via email to