mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-12 14:52:26 +00:00
fix: box the cascade refresh future
The cascade future nests a refresh future per hop, and computing its layout overflowed the default query depth in crates that await it, such as the Python bindings.
This commit is contained in:
@@ -2020,7 +2020,8 @@ impl RefreshMaterializedViewBuilder {
|
||||
let (table, full, pinned) = (&self.view.table, self.full, self.source_version);
|
||||
let expected = self.expected_incarnation.as_deref();
|
||||
if self.cascade {
|
||||
refresh::execute_cascade(table, full, pinned, expected).await
|
||||
// Boxed: its nested refresh futures overflow callers' query depth.
|
||||
Box::pin(refresh::execute_cascade(table, full, pinned, expected)).await
|
||||
} else {
|
||||
refresh::execute_refresh(table, full, pinned, expected).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user