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) <noreply@anthropic.com>
This commit is contained in:
Wyatt Alt
2026-06-16 08:13:10 -07:00
committed by Jack Ye
parent 6af3088b91
commit e73d4618d8

View File

@@ -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,