fix(mv): MaterializedView.refresh calls the async _refresh (underscore)

The sync _refresh_materialized_view called self._conn.refresh_materialized_view
(no underscore); the async method is _refresh_materialized_view, so
MaterializedView.refresh() raised AttributeError. Add the underscore.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Wyatt Alt
2026-06-16 08:14:48 -07:00
committed by Jack Ye
parent e73d4618d8
commit 6191542cfe

View File

@@ -723,7 +723,7 @@ class DBConnection(EnforceOverrides):
instead of the default incremental refresh.
"""
return LOOP.run(
self._conn.refresh_materialized_view(
self._conn._refresh_materialized_view(
name,
full=full,
src_version=src_version,