From e73d4618d8562bdb65dda04b2fd0fe968d453535 Mon Sep 17 00:00:00 2001 From: Wyatt Alt Date: Tue, 16 Jun 2026 08:13:10 -0700 Subject: [PATCH] fix(mv): create_materialized_view passes query as keyword, not positional The sync RemoteDBConnection.create_materialized_view assembled the SELECT but called the async create_materialized_view with the query as the 2nd positional arg, which binds to `source=` (query= is keyword-only). Every call then failed the "needs either query= or both source and select" validation. Pass query=query. Co-Authored-By: Claude Opus 4.8 (1M context) --- python/python/lancedb/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/python/lancedb/db.py b/python/python/lancedb/db.py index e0fae6c01..d12cbbdbe 100644 --- a/python/python/lancedb/db.py +++ b/python/python/lancedb/db.py @@ -677,7 +677,7 @@ class DBConnection(EnforceOverrides): job_id = LOOP.run( self._conn.create_materialized_view( name, - query, + query=query, auto_refresh=auto_refresh, with_no_data=with_no_data, partition_by=partition_by,