mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
feat(remote): add presigned direct Blob V2 reads (#5210)
## What
Add a capability-gated client path for large Blob V2 reads over LanceDB
Enterprise:
- A successful `describe` advertises `x-lancedb-blob-locations: 1`; the
SDK then resolves pinned row locations through `POST
/v1/table/{id}/blob_locations/`.
- Whole reads (`fetch_blobs`) and seekable handles (`fetch_blob_files` /
`open_blob_file`) read presigned object-store URLs directly for eligible
values and ranges at or above a provisional internal 10 MiB threshold.
- Small ranges and `fetch_blob_ranges` stay on the existing proxy path,
including aggregate batches whose total exceeds the proxy byte limit.
- Shared `Packed` / `Managed` sidecars translate logical ranges to
physical offsets and validate the full numeric `Content-Range` tuple,
not just its start or total.
- Presigned traffic uses a separate HTTP client with no Enterprise
default headers, so service credentials never reach object storage.
- The first resolver response must carry a valid query-snapshot
identity. That identity is then required on every later partition and
preserved through object-URL refresh, proxy fallback and oversized
whole-value recovery. A resolver `503` falls back once to the proxy path
using any version and identity already pinned; other resolver errors
propagate. Object-store `503`s do not masquerade as resolver
unavailability.
- A read that starts without the capability reuses its supplied
`ReadSnapshot` if a later describe enables direct opening mid-operation.
- Version and query-snapshot pinning, NULL/order alignment and empty
values are preserved.
## Client network requirement
On Enterprise clusters that enable direct Blob reads, large values and
individual ranges may be fetched from short-lived object-store URLs
instead of the LanceDB proxy. Clients then need network access to the
object-store endpoint, including private endpoint routing, DNS, TLS
trust and egress rules, in addition to the LanceDB endpoint. Small reads
stay on the LanceDB proxy.
## Why
Large Blob V2 reads currently stream every payload byte through `Object
Store -> Plan Executor -> Query Node -> client`. That consumes internal
bandwidth, inflates PE/QN memory use and pollutes executor caches with
low-locality `.blob` data. This is the SDK half of ENT-4358; the server
implementation is in Sophon.
## Compatibility
No public SDK signatures change. Old clusters omit the capability header
and keep the existing proxy behaviour with zero extra round trips. The
10 MiB threshold is an internal prototype choice pending the paired
acceptance measurement; it is not a public knob.
## Validation
- `cargo check -p lancedb --quiet --features remote --tests` passes.
- `cargo test -p lancedb --quiet --features remote --lib
remote::table::blobs::tests` passes: 65 tests.
- New coverage includes direct whole reads, shared-sidecar physical
offsets and Content-Range rejection, small-range proxy routing, mixed
large/small range batches, resolver `503` fallback with pinned state, no
second resolver after fallback, object-store `503` not triggering proxy
fallback, missing/mismatched resolver identity rejection, resolver
identity preservation through refresh/proxy/oversized recovery,
supplied-snapshot reuse on mid-operation capability refresh, and
NULL/order/null-preserving paths.
A real-QN acceptance run with the candidate SDK binary is separate and
still pending deployment of the candidate server image.
This commit is contained in:
@@ -2887,6 +2887,11 @@ class Table(ABC):
|
||||
``table.take_offsets(offsets, with_row_id=True)`` first and pass the
|
||||
resulting ``_rowid`` values.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
Blobs inside lists cannot be fetched by row id yet.
|
||||
|
||||
LanceDB Enterprise limits each request to 1024 row IDs and 64 MiB of blob
|
||||
@@ -2921,6 +2926,11 @@ class Table(ABC):
|
||||
One missing or deleted row ID rejects the entire batch; no partial
|
||||
results are returned.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
Row IDs can be obtained from a query with ``with_row_id(True)``.
|
||||
LanceDB Enterprise uses the batched endpoint when the server advertises
|
||||
support, partitioning at 1024 ranges and 64 MiB, including individual
|
||||
@@ -2949,6 +2959,11 @@ class Table(ABC):
|
||||
``buffer_size`` controls sequential read-ahead in bytes (default 512 KiB).
|
||||
Set it to 0 for sparse reads. Explicit range reads bypass this buffer.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
``_rowid`` values stay valid after compaction when the table has stable
|
||||
row ids.
|
||||
One missing or deleted row ID rejects the entire batch; no partial
|
||||
|
||||
@@ -17,6 +17,9 @@ use crate::utils::validate_database_name;
|
||||
|
||||
const REQUEST_ID_HEADER: HeaderName = HeaderName::from_static("x-request-id");
|
||||
const DEFAULT_BLOB_REQUEST_CONCURRENCY: usize = 8;
|
||||
/// M1 prototype routing threshold for direct Blob reads. It stays internal
|
||||
/// until the acceptance benchmark establishes the right default.
|
||||
pub(crate) const DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES: u64 = 10 * 1024 * 1024;
|
||||
|
||||
pub fn redact_sensitive_headers(headers: &mut HeaderMap) {
|
||||
const SENSITIVE_HEADERS: [&str; 5] = [
|
||||
@@ -312,9 +315,16 @@ pub struct RetryConfig {
|
||||
#[derive(Clone)]
|
||||
pub struct RestfulLanceDbClient<S: HttpSend = Sender> {
|
||||
client: reqwest::Client,
|
||||
/// A separate client for presigned object-store traffic. It deliberately
|
||||
/// carries none of the Enterprise default headers, so service credentials
|
||||
/// never reach object storage.
|
||||
object_store_client: reqwest::Client,
|
||||
host: String,
|
||||
pub(crate) retry_config: ResolvedRetryConfig,
|
||||
pub(crate) blob_request_semaphore: Arc<Semaphore>,
|
||||
/// Logical blob/range size at which a handle prefers a presigned direct
|
||||
/// read over the existing proxy byte-range route.
|
||||
pub(crate) blob_presign_threshold_bytes: u64,
|
||||
pub(crate) sender: S,
|
||||
pub(crate) header_provider: Option<Arc<dyn HeaderProvider>>,
|
||||
/// Connection-level read consistency interval. Drives the
|
||||
@@ -599,7 +609,7 @@ impl RestfulLanceDbClient<Sender> {
|
||||
|
||||
let client = client_builder
|
||||
.default_headers(default_headers)
|
||||
.user_agent(client_config.user_agent)
|
||||
.user_agent(client_config.user_agent.clone())
|
||||
.build()
|
||||
.map_err(|err| Error::Other {
|
||||
message: "Failed to build HTTP client".into(),
|
||||
@@ -620,11 +630,29 @@ impl RestfulLanceDbClient<Sender> {
|
||||
Self::resolve_max_bytes_per_request(client_config.max_bytes_per_request)?;
|
||||
let max_request_duration =
|
||||
Self::resolve_max_request_duration(client_config.max_request_duration, read_timeout)?;
|
||||
|
||||
let mut object_store_builder = reqwest::Client::builder()
|
||||
.connect_timeout(connect_timeout)
|
||||
.read_timeout(read_timeout)
|
||||
.pool_idle_timeout(pool_idle_timeout);
|
||||
if let Some(timeout) = timeout {
|
||||
object_store_builder = object_store_builder.timeout(timeout);
|
||||
}
|
||||
let object_store_client = object_store_builder
|
||||
.user_agent(client_config.user_agent)
|
||||
.build()
|
||||
.map_err(|err| Error::Other {
|
||||
message: "Failed to build object-store HTTP client".into(),
|
||||
source: Some(Box::new(err)),
|
||||
})?;
|
||||
|
||||
Ok(Self {
|
||||
client,
|
||||
object_store_client,
|
||||
host,
|
||||
retry_config,
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(blob_request_concurrency)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: Sender,
|
||||
header_provider: client_config.header_provider,
|
||||
read_consistency_interval,
|
||||
@@ -824,6 +852,34 @@ impl<S: HttpSend> RestfulLanceDbClient<S> {
|
||||
self.client.post(full_uri)
|
||||
}
|
||||
|
||||
/// Start a presigned object-store request. This client has no Enterprise
|
||||
/// default headers and no dynamic header provider.
|
||||
pub(crate) fn object_store_get(&self, url: &str) -> RequestBuilder {
|
||||
self.object_store_client.get(url)
|
||||
}
|
||||
|
||||
/// Send presigned object-store traffic without request logging, request
|
||||
/// ids, service headers, or signed URLs in returned errors.
|
||||
pub(crate) async fn send_object_store(
|
||||
&self,
|
||||
req: RequestBuilder,
|
||||
) -> Result<(String, Response)> {
|
||||
let request_id = "blob-direct".to_string();
|
||||
let (client, request) = req.build_split();
|
||||
let request = request.map_err(|err| Error::Http {
|
||||
source: Box::new(err.without_url()),
|
||||
request_id: request_id.clone(),
|
||||
status_code: None,
|
||||
})?;
|
||||
let response = self
|
||||
.sender
|
||||
.send(&client, request)
|
||||
.await
|
||||
.map_err(|err| err.without_url())
|
||||
.err_to_http(request_id.clone())?;
|
||||
Ok((request_id, response))
|
||||
}
|
||||
|
||||
pub fn put(&self, uri: &str) -> RequestBuilder {
|
||||
let full_uri = format!("{}{}", self.host, uri);
|
||||
self.client.put(full_uri)
|
||||
@@ -1190,9 +1246,11 @@ pub mod test_utils {
|
||||
|
||||
RestfulLanceDbClient {
|
||||
client: reqwest::Client::new(),
|
||||
object_store_client: reqwest::Client::new(),
|
||||
host: "http://localhost".to_string(),
|
||||
retry_config: RetryConfig::default().try_into().unwrap(),
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(DEFAULT_BLOB_REQUEST_CONCURRENCY)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: MockSender {
|
||||
f: Arc::new(wrapper),
|
||||
},
|
||||
@@ -1217,6 +1275,7 @@ pub mod test_utils {
|
||||
|
||||
RestfulLanceDbClient {
|
||||
client: reqwest::Client::new(),
|
||||
object_store_client: reqwest::Client::new(),
|
||||
host: "http://localhost".to_string(),
|
||||
retry_config: config.retry_config.try_into().unwrap(),
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(
|
||||
@@ -1224,6 +1283,7 @@ pub mod test_utils {
|
||||
.blob_request_concurrency
|
||||
.unwrap_or(DEFAULT_BLOB_REQUEST_CONCURRENCY),
|
||||
)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: MockSender {
|
||||
f: Arc::new(wrapper),
|
||||
},
|
||||
@@ -1868,9 +1928,11 @@ mod tests {
|
||||
// Create client with header provider
|
||||
let client = RestfulLanceDbClient {
|
||||
client: reqwest::Client::new(),
|
||||
object_store_client: reqwest::Client::new(),
|
||||
host: "https://example.com".to_string(),
|
||||
retry_config: RetryConfig::default().try_into().unwrap(),
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(DEFAULT_BLOB_REQUEST_CONCURRENCY)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: Sender,
|
||||
header_provider: Some(Arc::new(provider) as Arc<dyn HeaderProvider>),
|
||||
read_consistency_interval: None,
|
||||
@@ -1907,9 +1969,11 @@ mod tests {
|
||||
// Create client with header provider
|
||||
let client = RestfulLanceDbClient {
|
||||
client: reqwest::Client::new(),
|
||||
object_store_client: reqwest::Client::new(),
|
||||
host: "https://example.com".to_string(),
|
||||
retry_config: RetryConfig::default().try_into().unwrap(),
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(DEFAULT_BLOB_REQUEST_CONCURRENCY)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: Sender,
|
||||
header_provider: Some(Arc::new(provider) as Arc<dyn HeaderProvider>),
|
||||
read_consistency_interval: None,
|
||||
@@ -1972,9 +2036,11 @@ mod tests {
|
||||
|
||||
let client = RestfulLanceDbClient {
|
||||
client: reqwest::Client::new(),
|
||||
object_store_client: reqwest::Client::new(),
|
||||
host: "https://example.com".to_string(),
|
||||
retry_config: RetryConfig::default().try_into().unwrap(),
|
||||
blob_request_semaphore: Arc::new(Semaphore::new(DEFAULT_BLOB_REQUEST_CONCURRENCY)),
|
||||
blob_presign_threshold_bytes: DEFAULT_BLOB_PRESIGN_THRESHOLD_BYTES,
|
||||
sender: Sender,
|
||||
header_provider: Some(Arc::new(provider) as Arc<dyn HeaderProvider>),
|
||||
read_consistency_interval: None,
|
||||
|
||||
@@ -1814,6 +1814,7 @@ impl<S: HttpSend> Database for RemoteDatabase<S> {
|
||||
self.sql_client.clone(),
|
||||
));
|
||||
table.seed_blob_ranges_capability(rsp.headers());
|
||||
table.seed_blob_locations_capability(rsp.headers());
|
||||
Ok(table)
|
||||
} else {
|
||||
// Describe the table to confirm it exists before moving on.
|
||||
@@ -1837,6 +1838,7 @@ impl<S: HttpSend> Database for RemoteDatabase<S> {
|
||||
self.sql_client.clone(),
|
||||
));
|
||||
table.seed_blob_ranges_capability(&describe_headers);
|
||||
table.seed_blob_locations_capability(&describe_headers);
|
||||
// This describe already carries the schema, so hand it to the table
|
||||
// instead of making the first schema read fetch it again. A version or
|
||||
// branch pin applied after this invalidates the cache.
|
||||
|
||||
@@ -701,6 +701,8 @@ pub struct RemoteTable<S: HttpSend = Sender> {
|
||||
schema_cache: BackgroundCache<SchemaRef, Error>,
|
||||
// Only a successful describe can opt into the batched range protocol.
|
||||
blob_ranges_supported: Arc<AtomicBool>,
|
||||
// Only a successful describe can opt into presigned direct Blob reads.
|
||||
blob_locations_supported: Arc<AtomicBool>,
|
||||
// WAL-PK-FUSION: delete, with its initializers below.
|
||||
wal_pk_fusion: PkFusionMemory,
|
||||
freshness: Arc<Mutex<FreshnessState>>,
|
||||
@@ -1006,6 +1008,7 @@ impl<S: HttpSend> RemoteTable<S> {
|
||||
location: RwLock::new(None),
|
||||
schema_cache: BackgroundCache::new(SCHEMA_CACHE_TTL, SCHEMA_CACHE_REFRESH_WINDOW),
|
||||
blob_ranges_supported: Arc::new(AtomicBool::new(false)),
|
||||
blob_locations_supported: Arc::new(AtomicBool::new(false)),
|
||||
wal_pk_fusion: PkFusionMemory::default(),
|
||||
freshness: Arc::new(Mutex::new(FreshnessState::default())),
|
||||
branch: None,
|
||||
@@ -1022,6 +1025,20 @@ impl<S: HttpSend> RemoteTable<S> {
|
||||
);
|
||||
}
|
||||
|
||||
pub(super) fn seed_blob_locations_capability(&self, headers: &http::HeaderMap) {
|
||||
self.blob_locations_supported.store(
|
||||
headers
|
||||
.get("x-lancedb-blob-locations")
|
||||
.is_some_and(|value| value == "1"),
|
||||
AtomicOrdering::Relaxed,
|
||||
);
|
||||
}
|
||||
|
||||
fn seed_blob_capabilities(&self, headers: &http::HeaderMap) {
|
||||
self.seed_blob_ranges_capability(headers);
|
||||
self.seed_blob_locations_capability(headers);
|
||||
}
|
||||
|
||||
/// Seed the schema cache from a `describe` body the caller already fetched.
|
||||
///
|
||||
/// Best effort. `open_table` succeeds today without reading this body, so a
|
||||
@@ -1053,6 +1070,7 @@ impl<S: HttpSend> RemoteTable<S> {
|
||||
location: RwLock::new(None),
|
||||
schema_cache: BackgroundCache::new(SCHEMA_CACHE_TTL, SCHEMA_CACHE_REFRESH_WINDOW),
|
||||
blob_ranges_supported: self.blob_ranges_supported.clone(),
|
||||
blob_locations_supported: self.blob_locations_supported.clone(),
|
||||
wal_pk_fusion: PkFusionMemory::default(),
|
||||
freshness: Arc::new(Mutex::new(FreshnessState::default())),
|
||||
branch,
|
||||
@@ -1298,7 +1316,7 @@ impl<S: HttpSend> RemoteTable<S> {
|
||||
};
|
||||
|
||||
let response = self.check_table_response(&request_id, response).await?;
|
||||
self.seed_blob_ranges_capability(response.headers());
|
||||
self.seed_blob_capabilities(response.headers());
|
||||
let batch_function_declaration = response
|
||||
.headers()
|
||||
.get("x-lancedb-batch-function-declaration")
|
||||
@@ -2196,6 +2214,7 @@ fn unwrap_shared_error(arc: Arc<Error>) -> Error {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn fetch_schema<S: HttpSend>(
|
||||
client: &RestfulLanceDbClient<S>,
|
||||
identifier: &str,
|
||||
@@ -2204,6 +2223,7 @@ async fn fetch_schema<S: HttpSend>(
|
||||
branch: Option<String>,
|
||||
freshness: Arc<Mutex<FreshnessState>>,
|
||||
blob_ranges_supported: Arc<AtomicBool>,
|
||||
blob_locations_supported: Arc<AtomicBool>,
|
||||
) -> Result<SchemaRef> {
|
||||
let mut body = serde_json::json!({ "version": read_snapshot.version });
|
||||
if let Some(branch) = &branch {
|
||||
@@ -2228,6 +2248,13 @@ async fn fetch_schema<S: HttpSend>(
|
||||
.is_some_and(|value| value == "1"),
|
||||
AtomicOrdering::Relaxed,
|
||||
);
|
||||
blob_locations_supported.store(
|
||||
response
|
||||
.headers()
|
||||
.get("x-lancedb-blob-locations")
|
||||
.is_some_and(|value| value == "1"),
|
||||
AtomicOrdering::Relaxed,
|
||||
);
|
||||
let body = response.text().await.map_err(|e| {
|
||||
let status_code = e.status();
|
||||
Error::Http {
|
||||
@@ -2286,6 +2313,7 @@ mod test_utils {
|
||||
location: RwLock::new(None),
|
||||
schema_cache: BackgroundCache::new(SCHEMA_CACHE_TTL, SCHEMA_CACHE_REFRESH_WINDOW),
|
||||
blob_ranges_supported: Arc::new(AtomicBool::new(false)),
|
||||
blob_locations_supported: Arc::new(AtomicBool::new(false)),
|
||||
wal_pk_fusion: PkFusionMemory::default(),
|
||||
freshness: Arc::new(Mutex::new(FreshnessState::default())),
|
||||
branch: None,
|
||||
@@ -2315,6 +2343,7 @@ mod test_utils {
|
||||
location: RwLock::new(None),
|
||||
schema_cache: BackgroundCache::new(SCHEMA_CACHE_TTL, SCHEMA_CACHE_REFRESH_WINDOW),
|
||||
blob_ranges_supported: Arc::new(AtomicBool::new(false)),
|
||||
blob_locations_supported: Arc::new(AtomicBool::new(false)),
|
||||
wal_pk_fusion: PkFusionMemory::default(),
|
||||
freshness: Arc::new(Mutex::new(FreshnessState::default())),
|
||||
branch: None,
|
||||
@@ -2353,6 +2382,7 @@ mod test_utils {
|
||||
location: RwLock::new(None),
|
||||
schema_cache: BackgroundCache::new(SCHEMA_CACHE_TTL, SCHEMA_CACHE_REFRESH_WINDOW),
|
||||
blob_ranges_supported: Arc::new(AtomicBool::new(false)),
|
||||
blob_locations_supported: Arc::new(AtomicBool::new(false)),
|
||||
wal_pk_fusion: PkFusionMemory::default(),
|
||||
freshness: Arc::new(Mutex::new(FreshnessState::default())),
|
||||
branch: None,
|
||||
@@ -3209,6 +3239,7 @@ impl<S: HttpSend> BaseTable for RemoteTable<S> {
|
||||
let branch = self.branch.clone();
|
||||
let freshness = self.freshness.clone();
|
||||
let blob_ranges_supported = self.blob_ranges_supported.clone();
|
||||
let blob_locations_supported = self.blob_locations_supported.clone();
|
||||
|
||||
match self
|
||||
.schema_cache
|
||||
@@ -3221,6 +3252,7 @@ impl<S: HttpSend> BaseTable for RemoteTable<S> {
|
||||
branch,
|
||||
freshness,
|
||||
blob_ranges_supported,
|
||||
blob_locations_supported,
|
||||
)
|
||||
.await
|
||||
})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1552,6 +1552,12 @@ impl Table {
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// On LanceDB Enterprise clusters that enable direct Blob reads, large
|
||||
/// values and individual ranges may be fetched from short-lived object-store
|
||||
/// URLs instead of the LanceDB proxy. Clients then need network access to
|
||||
/// the object-store endpoint, including private endpoint routing, DNS, TLS
|
||||
/// trust and egress rules, in addition to the LanceDB endpoint. Small reads
|
||||
/// stay on the LanceDB proxy.
|
||||
/// Blobs inside lists cannot be fetched by row id. Returns
|
||||
/// [`Error::InvalidInput`] for those paths, when the column does not exist,
|
||||
/// or when it is not a blob column. Returns [`Error::NotSupported`] on
|
||||
@@ -1603,6 +1609,12 @@ impl Table {
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// On LanceDB Enterprise clusters that enable direct Blob reads, large
|
||||
/// values and individual ranges may be fetched from short-lived object-store
|
||||
/// URLs instead of the LanceDB proxy. Clients then need network access to
|
||||
/// the object-store endpoint, including private endpoint routing, DNS, TLS
|
||||
/// trust and egress rules, in addition to the LanceDB endpoint. Small reads
|
||||
/// stay on the LanceDB proxy.
|
||||
/// Returns an error when a range is invalid, a requested row id does not
|
||||
/// exist, or the column is not a blob column. Returns
|
||||
/// [`Error::NotSupported`] on table types without blob support.
|
||||
@@ -1630,6 +1642,12 @@ impl Table {
|
||||
/// `ClientConfig::blob_request_concurrency` or the
|
||||
/// `LANCE_CLIENT_BLOB_REQUEST_CONCURRENCY` environment variable to tune it.
|
||||
///
|
||||
/// On LanceDB Enterprise clusters that enable direct Blob reads, large
|
||||
/// values and individual ranges may be fetched from short-lived object-store
|
||||
/// URLs instead of the LanceDB proxy. Clients then need network access to
|
||||
/// the object-store endpoint, including private endpoint routing, DNS, TLS
|
||||
/// trust and egress rules, in addition to the LanceDB endpoint. Small reads
|
||||
/// stay on the LanceDB proxy.
|
||||
/// `_rowid` values stay valid after compaction when the table has stable
|
||||
/// row ids. One missing or deleted row id rejects the whole request; no
|
||||
/// partial handles are returned.
|
||||
@@ -1657,7 +1675,10 @@ impl Table {
|
||||
///
|
||||
/// The descriptor carries its table version, branch, column and row identity.
|
||||
/// Opening does not materialize the payload or change this table's checkout.
|
||||
/// Remote reads use the table's authenticated HTTP byte-range endpoint.
|
||||
/// On Enterprise clusters that enable direct Blob reads, large range reads
|
||||
/// may use a short-lived object-store URL; the client needs network access
|
||||
/// to that endpoint in addition to the LanceDB endpoint. Small reads stay
|
||||
/// on the authenticated LanceDB byte-range endpoint.
|
||||
///
|
||||
/// ```
|
||||
/// use lancedb::{Table, blob::BlobDescriptor};
|
||||
|
||||
Reference in New Issue
Block a user