Closed sukumarbera closed 4 months ago
I've actually already added functions to support managing incremental refresh policies in 0.4.1, I just have not advertised it yet as I am doing more testing. You can try them out (and find them using dir() and help(). Here is one for updating the policy. Any feedback is appreciated.
import fabric_cat_tools as fct
from fabric_cat_tools.TOM import connect_semantic_model
dataset = '' # Enter dataset name
workspace = None # Enter workspace name
with connect_semantic_model(dataset=dataset, readonly=False, workspace=workspace) as tom:
tom.update_incremental_refresh_policy(table_name: str, incremental_granularity: str, incremental_periods: int, rolling_window_granularity: str, rolling_window_periods: int, only_refresh_complete_days: bool = False, detect_data_changes_column: str | None = None)
Update the incremental refresh policy details for each table like