fix(python): skip server-side query pushdown on branch handles

This commit is contained in:
Brendan Clement
2026-06-03 09:25:33 -07:00
parent f1817fc555
commit 61141e87ee

View File

@@ -3484,8 +3484,14 @@ class LanceTable(Table):
batch_size: Optional[int] = None,
timeout: Optional[timedelta] = None,
) -> pa.RecordBatchReader:
if _should_push_down_query_table(
self._namespace_client, self._pushdown_operations
# Branch queries run locally: the server-side query protocol can't
# carry a branch yet.
# TODO: push down server-side once it can (with remote table support).
if (
_should_push_down_query_table(
self._namespace_client, self._pushdown_operations
)
and self.current_branch() is None
):
from lancedb.namespace import _execute_server_side_query