From c2d86b20cac1da5bdc76aa16290f15b305e692c0 Mon Sep 17 00:00:00 2001 From: Gatefixer <313497061+lancedb-gatefixer[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:36:23 +0000 Subject: [PATCH] docs(python): qualify batch read cancellation behavior --- python/python/lancedb/arrow.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/python/lancedb/arrow.py b/python/python/lancedb/arrow.py index f31794ac4..e691b1720 100644 --- a/python/python/lancedb/arrow.py +++ b/python/python/lancedb/arrow.py @@ -16,9 +16,11 @@ class AsyncRecordBatchReader: Also allows access to the schema of the stream - Cancelling an active batch read closes its native query stream. Further reads - of that stream raise ``RuntimeError``; run the query again to obtain a new - reader. + After cancelling a batch read, discard this reader and run the query again + to obtain a new reader. For native query streams, cancellation that + interrupts an active read closes the stream, and further reads raise + ``RuntimeError``. Completion can race with cancellation, so later reads + may still return batches. """ def __init__(