You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# for any affected full_history_restatement_only snapshots, we need to widen the intervals being restated to
181
+
# include the whole time range for that snapshot. This requires a call to state to load the full snapshot record,
182
+
# so we only do it if necessary
183
+
full_history_restatement_snapshot_ids= [
184
+
# FIXME: full_history_restatement_only is just one indicator that the snapshot can only be fully refreshed, the other one is Model.depends_on_self
185
+
# however, to figure out depends_on_self, we have to render all the model queries which, alongside having to fetch full snapshots from state,
186
+
# is problematic in secure environments that are deliberately isolated from arbitrary user code (since rendering a query may require user macros to be present)
187
+
# So for now, these are not considered
188
+
s_id
189
+
fors_id, sinsnapshot_intervals_to_clear.items()
190
+
ifs.table_info.full_history_restatement_only
191
+
]
192
+
iffull_history_restatement_snapshot_ids:
193
+
# only load full snapshot records that we havent already loaded
# for any affected full_history_restatement_only snapshots, we need to widen the intervals being restated to
477
-
# include the whole time range for that snapshot. This requires a call to state to load the full snapshot record,
478
-
# so we only do it if necessary
479
-
full_history_restatement_snapshot_ids= [
480
-
# FIXME: full_history_restatement_only is just one indicator that the snapshot can only be fully refreshed, the other one is Model.depends_on_self
481
-
# however, to figure out depends_on_self, we have to render all the model queries which, alongside having to fetch full snapshots from state,
482
-
# is problematic in secure environments that are deliberately isolated from arbitrary user code (since rendering a query may require user macros to be present)
483
-
# So for now, these are not considered
484
-
s_id
485
-
fors_id, sinsnapshots_to_restate.items()
486
-
ifs[0].full_history_restatement_only
487
-
]
488
-
iffull_history_restatement_snapshot_ids:
489
-
# only load full snapshot records that we havent already loaded
0 commit comments