Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): read view cadence from its DAG node target (#73611)

Jovan Sakovic133458472fba
diff --git a/frontend/src/scenes/data-warehouse/saved_queries/MaterializationStatusPanel.tsx b/frontend/src/scenes/data-warehouse/saved_queries/MaterializationStatusPanel.tsx
index 6228329c6df6..07e2dd6fecab 100644
--- a/frontend/src/scenes/data-warehouse/saved_queries/MaterializationStatusPanel.tsx
+++ b/frontend/src/scenes/data-warehouse/saved_queries/MaterializationStatusPanel.tsx
@@ -3,14 +3,12 @@ import { useActions, useValues } from 'kea'
import { IconRefresh, IconRevert, IconX } from '@posthog/icons'
import { LemonDialog, LemonTable, Link, Spinner } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
import { dayjsUtcToTimezone } from 'lib/dayjs'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonProgress } from 'lib/lemon-ui/LemonProgress'
import { LemonSelect } from 'lib/lemon-ui/LemonSelect'
import { LemonTag, LemonTagType } from 'lib/lemon-ui/LemonTag'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'
import { humanFriendlyDetailedTime } from 'lib/utils/datetime'
import { humanFriendlyDuration } from 'lib/utils/durations'
@@ -153,11 +151,14 @@ export function MaterializationStatusPanel({ viewId, kind = 'view' }: Materializ
revertMaterialization,
} = useActions(dataWarehouseViewsLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { timezone } = useValues(teamLogic)
const { user } = useValues(userLogic)
const showDebugLogs = user?.is_staff || user?.is_impersonated
- const isDagSchedulesOnly = !!featureFlags[FEATURE_FLAGS.DATA_MODELING_BACKEND_V2]
+ // The two ways a cadence write gets rejected. Single-schedule v2 teams have the cadence on the
+ // DAG's one schedule, which the server tells us because the flag that distinguishes per-node
+ // schedules is evaluated server-side and never reaches the frontend. Managed viewsets reject
+ // every update regardless of team.
+ const canEditSyncFrequency = !savedQuery?.sync_frequency_managed_by_dag && !savedQuery?.managed_viewset_kind
const materializationAccessReason = getAccessControlDisabledReason(
AccessControlResourceType.WarehouseObjects,
AccessControlLevel.Editor
@@ -220,7 +221,7 @@ export function MaterializationStatusPanel({ viewId, kind = 'view' }: Materializ
? 'Running...'
: 'Sync now'}
</LemonButton>
- {kind !== 'endpoint' && !isDagSchedulesOnly && (
+ {kind !== 'endpoint' && canEditSyncFrequency && (
<LemonSelect
className="h-9"
disabledReason={sync || materializationAccessReason}
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 2bdcd1ac4071..5acf701caa93 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -6131,6 +6131,8 @@ export interface DataWarehouseSavedQuery {
columns: DatabaseSchemaField[]
last_run_at?: string
sync_frequency?: string
+ /** True when the DAG's single schedule owns the cadence, so `sync_frequency` is not editable per view */
+ sync_frequency_managed_by_dag?: boolean
status?: string
managed_viewset_kind: DataWarehouseManagedViewsetKind | null
folder_id?: string | null
diff --git a/products/data_modeling/backend/facade/api.py b/products/data_modeling/backend/facade/api.py
index 8809d2222808..8b340f22b336 100644
--- a/products/data_modeling/backend/facade/api.py
+++ b/products/data_modeling/backend/facade/api.py
@@ -22,6 +22,7 @@ _LAZY = {
"start_node_materialization": "logic.node_materialization",
"apply_saved_query_frequency_target": "logic.schedule_reconcile",
"tiered_schedules_enabled": "logic.schedule_reconcile",
+ "declared_targets_by_saved_query": "logic.node_frequency",
"get_declared_target": "logic.node_frequency",
"compute_enrichment_hash": "logic.enrich_view_semantics",
"enrichment_gates_pass": "logic.enrich_view_semantics",
diff --git a/products/data_modeling/backend/logic/node_frequency.py b/products/data_modeling/backend/logic/node_frequency.py
index 15e8f6b725be..cc3cf0a32d24 100644
--- a/products/data_modeling/backend/logic/node_frequency.py
+++ b/products/data_modeling/backend/logic/node_frequency.py
@@ -9,6 +9,7 @@ typed column.
import uuid
import dataclasses
+from collections.abc import Iterable
from datetime import timedelta
from django.db.models import Q, QuerySet
@@ -37,6 +38,25 @@ def get_declared_target(node: Node) -> timedelta | None:
return timedelta(seconds=seconds) if seconds is not None else None
+def declared_targets_by_saved_query(team_id: int, saved_query_ids: Iterable[str | uuid.UUID]) -> dict[str, timedelta]:
+ """Declared freshness target per saved query id, for those whose node carries one.
+
+ Batched for callers that render many saved queries at once. A saved query can hold nodes in
+ several DAGs, but `apply_saved_query_frequency_target` writes the same target to all of them,
+ so the first one found wins.
+ """
+ ids = [str(saved_query_id) for saved_query_id in saved_query_ids]
+ if not ids:
+ return {}
+
+ targets: dict[str, timedelta] = {}
+ for node in Node.objects.filter(team_id=team_id, saved_query_id__in=ids).only("saved_query_id", "properties"):
+ target = get_declared_target(node)
+ if target is not None:
+ targets.setdefault(str(node.saved_query_id), target)
+ return targets
+
+
def set_declared_target(node: Node, target: timedelta | None) -> None:
"""Set (or clear, with None) the node's declared target without touching sibling system state."""
properties = node.properties or {}
diff --git a/products/data_warehouse/backend/presentation/views/saved_query.py b/products/data_warehouse/backend/presentation/views/saved_query.py
index 469db844f42d..be23e5790e16 100644
--- a/products/data_warehouse/backend/presentation/views/saved_query.py
+++ b/products/data_warehouse/backend/presentation/views/saved_query.py
@@ -1,5 +1,5 @@
import uuid
-from datetime import datetime
+from datetime import datetime, timedelta
from typing import Any, cast
from django.conf import settings
@@ -104,11 +104,60 @@ SYNC_FREQUENCY_CHOICES = [
DEPRECATED_FAST_SYNC_FREQUENCIES = {"1min", "5min"}
+SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT = (
+ "True when this team's DAG owns the materialization cadence through a single schedule, so "
+ "`sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG "
+ "schedules are in use or the team is on the v1 backend. False does not on its own mean the "
+ "cadence is writable: a view belonging to a managed viewset rejects every update regardless, "
+ "which `managed_viewset_kind` reports."
+)
+
+
+def _node_frequency_targets(root: serializers.BaseSerializer, view: DataWarehouseSavedQuery) -> dict[str, timedelta]:
+ """Declared node targets for every view the root serializer renders, fetched once.
+
+ Resolved from the root's instance rather than the viewset context, because the context is
+ built without knowing which page of views is being serialized. Memoized on the root so a
+ `list` response costs one query instead of one per view.
+ """
+ cached = getattr(root, "_node_frequency_targets_cache", None)
+ if cached is not None:
+ return cached
+
+ from products.data_modeling.backend.facade.api import declared_targets_by_saved_query
+
+ instance = root.instance
+ if isinstance(instance, DataWarehouseSavedQuery):
+ views = [instance]
+ elif instance is None:
+ views = [view]
+ else:
+ views = list(instance)
+
+ targets = declared_targets_by_saved_query(view.team_id, [rendered.pk for rendered in views])
+ root._node_frequency_targets_cache = targets # type: ignore[attr-defined]
+ return targets
+
+
+def resolve_sync_frequency(root: serializers.BaseSerializer, view: DataWarehouseSavedQuery) -> str | None:
+ """Cadence string for a view, preferring its DAG node's declared freshness target.
+
+ On tiered v2 teams the node target is the only store of cadence — reconcile deliberately NULLs
+ `sync_frequency_interval` so a stale v1 schedule can't be revived from it — so reading the
+ column alone reports "never" for every scheduled view. The column still covers v1 and
+ single-schedule v2 teams, which have no node target.
+ """
+ target = _node_frequency_targets(root, view).get(str(view.pk))
+ if target is not None:
+ return sync_frequency_interval_to_sync_frequency(target)
+ return sync_frequency_interval_to_sync_frequency(view.sync_frequency_interval)
+
+
class SyncFrequencyField(serializers.ChoiceField):
"""Writable sync-cadence field for saved queries.
- The cadence is stored on the model as a `sync_frequency_interval` duration, so reads derive
- the cadence string from it; writes are validated against the choices and consumed by the
+ Reads resolve the cadence via `resolve_sync_frequency` (node target first, then the model's
+ `sync_frequency_interval`); writes are validated against the choices and consumed by the
serializer's `update()`. Declaring it as a real (non read-only) field is what lets the
cadence flow into the generated PATCH body and MCP tool schema.
"""
@@ -126,7 +175,7 @@ class SyncFrequencyField(serializers.ChoiceField):
return super().to_internal_value(data)
def get_attribute(self, instance: DataWarehouseSavedQuery) -> str | None:
- return sync_frequency_interval_to_sync_frequency(instance.sync_frequency_interval)
+ return resolve_sync_frequency(self.root, instance)
def delete_saved_query(saved_query: DataWarehouseSavedQuery) -> None:
@@ -197,7 +246,11 @@ class DataWarehouseSavedQuerySerializerMixin:
@extend_schema_field(serializers.CharField(allow_null=True))
def get_sync_frequency(self, schema: DataWarehouseSavedQuery):
- return sync_frequency_interval_to_sync_frequency(schema.sync_frequency_interval)
+ return resolve_sync_frequency(self.root, schema) # type: ignore[attr-defined]
+
+ @extend_schema_field(serializers.BooleanField())
+ def get_sync_frequency_managed_by_dag(self, view: DataWarehouseSavedQuery) -> bool:
+ return bool(self.context.get("sync_frequency_managed_by_dag", False)) # type: ignore[attr-defined]
@extend_schema_field(serializers.CharField(allow_null=True))
def get_managed_viewset_kind(self, view: DataWarehouseSavedQuery) -> DataWarehouseManagedViewsetKind | None:
@@ -245,6 +298,9 @@ class DataWarehouseSavedQueryMinimalSerializer(
columns = serializers.SerializerMethodField(read_only=True)
description = ViewDescriptionField(read_only=True, help_text=VIEW_DESCRIPTION_HELP_TEXT)
sync_frequency = serializers.SerializerMethodField()
+ sync_frequency_managed_by_dag = serializers.SerializerMethodField(
+ read_only=True, help_text=SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT
+ )
last_run_at = serializers.SerializerMethodField(read_only=True)
managed_viewset_kind = serializers.SerializerMethodField(read_only=True)
folder_id = serializers.UUIDField(source="folder.id", read_only=True, allow_null=True)
@@ -260,6 +316,7 @@ class DataWarehouseSavedQueryMinimalSerializer(
"created_at",
"description",
"sync_frequency",
+ "sync_frequency_managed_by_dag",
"columns",
"status",
"last_run_at",
@@ -301,10 +358,14 @@ class DataWarehouseSavedQuerySerializer(
help_text=(
"How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', "
"'24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest "
- "cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored "
- "on the view's DAG node, so this field may read back as null after a successful write."
+ "cadence available. Null means no scheduled materialization. Read back after a write, this "
+ "reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed "
+ "per-node, that is the view's DAG node rather than the view itself."
),
)
+ sync_frequency_managed_by_dag = serializers.SerializerMethodField(
+ read_only=True, help_text=SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT
+ )
latest_history_id = serializers.SerializerMethodField(read_only=True)
last_run_at = serializers.SerializerMethodField(read_only=True)
managed_viewset_kind = serializers.SerializerMethodField(read_only=True)
@@ -351,6 +412,7 @@ class DataWarehouseSavedQuerySerializer(
"created_at",
"description",
"sync_frequency",
+ "sync_frequency_managed_by_dag",
"columns",
"status",
"last_run_at",
@@ -376,6 +438,7 @@ class DataWarehouseSavedQuerySerializer(
"status",
"last_run_at",
"managed_viewset_kind",
+ "sync_frequency_managed_by_dag",
"folder_name",
"latest_error",
"latest_history_id",
@@ -905,8 +968,27 @@ class DataWarehouseSavedQueryViewSet(TeamAndOrgViewSetMixin, AccessControlViewSe
if should_include_database:
context["database"] = Database.create_for(team_id=self.team_id, user=cast(User, self.request.user))
+ context["sync_frequency_managed_by_dag"] = self._sync_frequency_managed_by_dag()
return context
+ def _sync_frequency_managed_by_dag(self) -> bool:
+ """Whether the DAG's single schedule owns cadence for this team.
+
+ On single-schedule v2 the DAG's one schedule owns cadence, so per-view frequency writes are
+ rejected; per-node (tiered) schedules and the v1 backend both accept them. This covers only
+ that one of `update()`'s rejections — it is team-scoped, so the per-view managed-viewset
+ rejection is not and cannot be reflected here.
+ """
+ from products.data_modeling.backend.facade.api import tiered_schedules_enabled
+
+ v2_enabled = posthoganalytics.feature_enabled(
+ "data-modeling-backend-v2",
+ str(self.team.uuid),
+ groups={"organization": str(self.team.organization_id), "project": str(self.team.id)},
+ send_feature_flag_events=False,
+ )
+ return bool(v2_enabled) and not tiered_schedules_enabled(self.team)
+
def get_serializer_class(self):
if self.action == "list":
return DataWarehouseSavedQueryMinimalSerializer
diff --git a/products/data_warehouse/backend/tests/api/test_saved_query.py b/products/data_warehouse/backend/tests/api/test_saved_query.py
index e9509c841c0c..d17dece0a40e 100644
--- a/products/data_warehouse/backend/tests/api/test_saved_query.py
+++ b/products/data_warehouse/backend/tests/api/test_saved_query.py
@@ -6,6 +6,9 @@ from posthog.test.base import APIBaseTest
from unittest import mock
from unittest.mock import AsyncMock, patch
+from django.db import connection
+from django.test.utils import CaptureQueriesContext
+
from parameterized import parameterized
from posthog.models import ActivityLog
@@ -678,11 +681,11 @@ class TestSavedQuery(APIBaseTest):
mock_workflow_exists.assert_called_once_with(saved_query)
mock_pause_saved_query_schedule.assert_called_once_with(saved_query)
- def _create_saved_query_for_frequency_tests(self) -> dict:
+ def _create_saved_query_for_frequency_tests(self, name: str = "event_view") -> dict:
response = self.client.post(
f"/api/environments/{self.team.id}/warehouse_saved_queries/",
{
- "name": "event_view",
+ "name": name,
"query": {
"kind": "HogQLQuery",
"query": "select event as event from events LIMIT 100",
@@ -729,6 +732,9 @@ class TestSavedQuery(APIBaseTest):
)
self.assertEqual(response.status_code, 200, response.json())
+ # the write response must echo the cadence it just stored: an agent that reads back null
+ # concludes the update failed and retries it
+ self.assertEqual(response.json()["sync_frequency"], None if expected_target is None else sync_frequency)
# the node target is the only store of frequency intent; the interval stays NULL
updated = DataWarehouseSavedQuery.objects.get(id=saved_query["id"])
self.assertIsNone(updated.sync_frequency_interval)
@@ -812,6 +818,97 @@ class TestSavedQuery(APIBaseTest):
self.assertEqual(response.status_code, 400)
self.assertIn("managed by the DAG", response.json()["detail"])
+ def _read_sync_frequency(self, saved_query_id: str, action: str) -> str | None:
+ if action == "retrieve":
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query_id}",
+ )
+ self.assertEqual(response.status_code, 200, response.json())
+ return response.json()["sync_frequency"]
+
+ response = self.client.get(f"/api/environments/{self.team.id}/warehouse_saved_queries/")
+ self.assertEqual(response.status_code, 200, response.json())
+ row = next(result for result in response.json()["results"] if result["id"] == saved_query_id)
+ return row["sync_frequency"]
+
+ @parameterized.expand(
+ [
+ ("retrieve_tiered", "retrieve", timedelta(hours=6), None, "6hour"),
+ ("list_tiered", "list", timedelta(hours=6), None, "6hour"),
+ ("retrieve_legacy", "retrieve", None, timedelta(hours=24), "24hour"),
+ ("list_legacy", "list", None, timedelta(hours=24), "24hour"),
+ ("retrieve_unscheduled", "retrieve", None, None, None),
+ ("list_unscheduled", "list", None, None, None),
+ ]
+ )
+ def test_sync_frequency_read_prefers_the_node_target(
+ self,
+ _name: str,
+ action: str,
+ node_target: timedelta | None,
+ interval: timedelta | None,
+ expected: str | None,
+ ):
+ # Reconcile NULLs sync_frequency_interval on tiered teams and stores the cadence on the
+ # node, so deriving the read from the column alone reports "never" for every tiered view.
+ # The list and retrieve actions use different serializer classes: cover both.
+ from products.data_modeling.backend.logic.node_frequency import set_declared_target
+
+ saved_query = self._create_saved_query_for_frequency_tests()
+ if node_target is not None:
+ set_declared_target(Node.objects.get(saved_query_id=saved_query["id"]), node_target)
+ DataWarehouseSavedQuery.objects.filter(id=saved_query["id"]).update(sync_frequency_interval=interval)
+
+ self.assertEqual(self._read_sync_frequency(saved_query["id"], action), expected)
+
+ def test_sync_frequency_read_hits_the_node_table_once_per_page(self):
+ # N+1 guard: view-list serializes a whole page, so a per-view target lookup would issue
+ # one node query per view.
+ from products.data_modeling.backend.logic.node_frequency import set_declared_target
+
+ for name in ("view_a", "view_b", "view_c"):
+ saved_query = self._create_saved_query_for_frequency_tests(name=name)
+ set_declared_target(Node.objects.get(saved_query_id=saved_query["id"]), timedelta(hours=6))
+
+ with CaptureQueriesContext(connection) as queries:
+ response = self.client.get(f"/api/environments/{self.team.id}/warehouse_saved_queries/")
+
+ self.assertEqual(response.status_code, 200, response.json())
+ self.assertEqual([row["sync_frequency"] for row in response.json()["results"]], ["6hour"] * 3)
+ node_queries = [q for q in queries.captured_queries if Node._meta.db_table in q["sql"]]
+ self.assertEqual(len(node_queries), 1, node_queries)
+
+ @parameterized.expand(
+ [
+ ("v1", False, False, False),
+ ("v2_single_schedule", True, False, True),
+ ("v2_tiered", True, True, False),
+ ]
+ )
+ def test_sync_frequency_managed_by_dag_tracks_the_write_path(
+ self, _name: str, v2_enabled: bool, tiered: bool, expected: bool
+ ):
+ # The frontend hides the cadence control on this flag. It must mean exactly what the
+ # write path rejects, or the control disappears from teams that can in fact edit.
+ saved_query = self._create_saved_query_for_frequency_tests()
+
+ with (
+ patch(
+ "products.data_warehouse.backend.presentation.views.saved_query.posthoganalytics.feature_enabled",
+ side_effect=lambda key, *args, **kwargs: v2_enabled and key == "data-modeling-backend-v2",
+ ),
+ patch(
+ "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",
+ return_value=tiered,
+ ),
+ ):
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query['id']}",
+ )
+
+ self.assertEqual(response.status_code, 200, response.json())
+ self.assertEqual(response.json()["sync_frequency_managed_by_dag"], expected)
+
def test_sync_frequency_is_a_writable_field(self):
# Regression: sync_frequency used to be a read-only SerializerMethodField, so it was
# marked readOnly in the generated OpenAPI/MCP schemas and silently dropped from writes.
diff --git a/products/data_warehouse/frontend/generated/api.schemas.ts b/products/data_warehouse/frontend/generated/api.schemas.ts
index eade3040e902..f1b42d007337 100644
--- a/products/data_warehouse/frontend/generated/api.schemas.ts
+++ b/products/data_warehouse/frontend/generated/api.schemas.ts
@@ -823,6 +823,8 @@ export interface DataWarehouseSavedQueryMinimalApi {
readonly description: string
/** @nullable */
readonly sync_frequency: string | null
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag: boolean
readonly columns: readonly DataWarehouseSavedQueryMinimalApiColumnsItem[]
/** The status of when this SavedQuery last ran.
*
@@ -939,7 +941,7 @@ export interface DataWarehouseSavedQueryApi {
* @nullable
*/
description?: string | null
- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.
+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.
*
* * `never` - never
* * `15min` - 15min
@@ -951,6 +953,8 @@ export interface DataWarehouseSavedQueryApi {
* * `7day` - 7day
* * `30day` - 30day */
sync_frequency?: SavedQuerySyncFrequencyEnumApi | null
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag: boolean
readonly columns: readonly DataWarehouseSavedQueryApiColumnsItem[]
/** The status of when this SavedQuery last ran.
*
@@ -1055,7 +1059,7 @@ export interface PatchedDataWarehouseSavedQueryApi {
* @nullable
*/
description?: string | null
- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.
+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.
*
* * `never` - never
* * `15min` - 15min
@@ -1067,6 +1071,8 @@ export interface PatchedDataWarehouseSavedQueryApi {
* * `7day` - 7day
* * `30day` - 30day */
sync_frequency?: SavedQuerySyncFrequencyEnumApi | null
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag?: boolean
readonly columns?: readonly PatchedDataWarehouseSavedQueryApiColumnsItem[]
/** The status of when this SavedQuery last ran.
*
diff --git a/products/data_warehouse/frontend/generated/api.zod.ts b/products/data_warehouse/frontend/generated/api.zod.ts
index 51c2f667732d..03aa89940d81 100644
--- a/products/data_warehouse/frontend/generated/api.zod.ts
+++ b/products/data_warehouse/frontend/generated/api.zod.ts
@@ -314,7 +314,7 @@ export const WarehouseSavedQueriesCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -376,7 +376,7 @@ export const WarehouseSavedQueriesUpdateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -440,7 +440,7 @@ export const WarehouseSavedQueriesPartialUpdateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -506,7 +506,7 @@ export const WarehouseSavedQueriesAncestorsCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -568,7 +568,7 @@ export const WarehouseSavedQueriesCancelCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -634,7 +634,7 @@ export const WarehouseSavedQueriesDescendantsCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -696,7 +696,7 @@ export const WarehouseSavedQueriesMaterializeCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -761,7 +761,7 @@ export const WarehouseSavedQueriesRevertMaterializationCreateBody = /* @__PURE__
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -823,7 +823,7 @@ export const WarehouseSavedQueriesRunCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
@@ -888,7 +888,7 @@ export const WarehouseSavedQueriesResumeSchedulesCreateBody = /* @__PURE__ */ zo
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.uuid()
diff --git a/products/data_warehouse/mcp/tools.yaml b/products/data_warehouse/mcp/tools.yaml
index 5fe2b5da7c3b..6f3ce24435fd 100644
--- a/products/data_warehouse/mcp/tools.yaml
+++ b/products/data_warehouse/mcp/tools.yaml
@@ -246,6 +246,7 @@ tools:
- columns
- last_run_at
- managed_viewset_kind
+ - sync_frequency_managed_by_dag
- latest_history_id
param_overrides:
name:
@@ -390,6 +391,7 @@ tools:
- columns
- last_run_at
- managed_viewset_kind
+ - sync_frequency_managed_by_dag
- latest_history_id
param_overrides:
name:
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 55ae22c857c5..30b3ea9dbcfc 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -17298,7 +17298,7 @@ export namespace Schemas {
* @nullable
*/
description?: string | null;
- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.
+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.
*
* * `never` - never
* * `15min` - 15min
@@ -17310,6 +17310,8 @@ export namespace Schemas {
* * `7day` - 7day
* * `30day` - 30day */
sync_frequency?: SavedQuerySyncFrequencyEnum | null;
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag: boolean;
readonly columns: readonly DataWarehouseSavedQueryColumnsItem[];
/** The status of when this SavedQuery last ran.
*
@@ -17474,6 +17476,8 @@ export namespace Schemas {
readonly description: string;
/** @nullable */
readonly sync_frequency: string | null;
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag: boolean;
readonly columns: readonly DataWarehouseSavedQueryMinimalColumnsItem[];
/** The status of when this SavedQuery last ran.
*
@@ -47240,7 +47244,7 @@ export namespace Schemas {
* @nullable
*/
description?: string | null;
- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.
+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.
*
* * `never` - never
* * `15min` - 15min
@@ -47252,6 +47256,8 @@ export namespace Schemas {
* * `7day` - 7day
* * `30day` - 30day */
sync_frequency?: SavedQuerySyncFrequencyEnum | null;
+ /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */
+ readonly sync_frequency_managed_by_dag?: boolean;
readonly columns?: readonly PatchedDataWarehouseSavedQueryColumnsItem[];
/** The status of when this SavedQuery last ran.
*
diff --git a/services/mcp/src/generated/data_warehouse/api.ts b/services/mcp/src/generated/data_warehouse/api.ts
index 7973dda4b98f..2e409838ca25 100644
--- a/services/mcp/src/generated/data_warehouse/api.ts
+++ b/services/mcp/src/generated/data_warehouse/api.ts
@@ -278,7 +278,7 @@ export const WarehouseSavedQueriesCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.string()
@@ -354,7 +354,7 @@ export const WarehouseSavedQueriesPartialUpdateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.string()
@@ -433,7 +433,7 @@ export const WarehouseSavedQueriesMaterializeCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.string()
@@ -507,7 +507,7 @@ export const WarehouseSavedQueriesRevertMaterializationCreateBody = /* @__PURE__
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.string()
@@ -578,7 +578,7 @@ export const WarehouseSavedQueriesRunCreateBody = /* @__PURE__ */ zod
])
.optional()
.describe(
- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"
),
folder_id: zod
.string()
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json
index 8d6412399b0d..5ea65abea3f9 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json
@@ -69,7 +69,7 @@
"type": "null"
}
],
- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
}
},
"required": ["name", "query"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json
index 28d462218c24..0455e725956e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json
@@ -105,7 +105,7 @@
"type": "null"
}
],
- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
}
},
"required": ["id", "name", "query"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json
index 28d462218c24..0455e725956e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json
@@ -105,7 +105,7 @@
"type": "null"
}
],
- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
}
},
"required": ["id", "name", "query"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json
index 28d462218c24..0455e725956e 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json
@@ -105,7 +105,7 @@
"type": "null"
}
],
- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
}
},
"required": ["id", "name", "query"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json
index 484bb5739920..8b0ab180a397 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json
@@ -84,7 +84,7 @@
"type": "null"
}
],
- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. On teams whose DAG schedules are managed per-node, the cadence is stored on the view's DAG node, so this field may read back as null after a successful write.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"
}
},
"required": ["id"],