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
169
+
# include the whole time range for that snapshot. This requires a call to state to load the full snapshot record,
170
+
# so we only do it if necessary
171
+
full_history_restatement_snapshot_ids= [
172
+
# 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
173
+
# however, to figure out depends_on_self, we have to render all the model queries which, alongside having to fetch full snapshots from state,
174
+
# is problematic in secure environments that are deliberately isolated from arbitrary user code (since rendering a query may require user macros to be present)
175
+
# So for now, these are not considered
176
+
s_id
177
+
fors_id, sinsnapshot_intervals_to_clear.items()
178
+
ifs.table_info.full_history_restatement_only
179
+
]
180
+
iffull_history_restatement_snapshot_ids:
181
+
# 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