@@ -2419,23 +2419,21 @@ def capture_execution_stats(
24192419 assert actual_execution_stats ["full_model" ].total_bytes_processed is not None
24202420
24212421 # run that loads 0 rows in incremental model
2422- actual_execution_stats = {}
2423- with patch .object (
2424- context .console , "update_snapshot_evaluation_progress" , capture_execution_stats
2425- ):
2426- with time_machine .travel (date .today () + timedelta (days = 1 )):
2427- context .run ()
2428-
2429- if ctx .engine_adapter .SUPPORTS_QUERY_EXECUTION_TRACKING :
2430- assert actual_execution_stats ["incremental_model" ].total_rows_processed == 0
2431- # snowflake doesn't track rows for CTAS
2432- assert actual_execution_stats ["full_model" ].total_rows_processed == (
2433- None if ctx .mark .startswith ("snowflake" ) else 3
2434- )
2435-
2436- if ctx .mark .startswith ("bigquery" ) or ctx .mark .startswith ("databricks" ):
2437- assert actual_execution_stats ["incremental_model" ].total_bytes_processed is not None
2438- assert actual_execution_stats ["full_model" ].total_bytes_processed is not None
2422+ # - some cloud DBs error because time travel messes up token expiration
2423+ if not ctx .is_remote :
2424+ actual_execution_stats = {}
2425+ with patch .object (
2426+ context .console , "update_snapshot_evaluation_progress" , capture_execution_stats
2427+ ):
2428+ with time_machine .travel (date .today () + timedelta (days = 1 )):
2429+ context .run ()
2430+
2431+ if ctx .engine_adapter .SUPPORTS_QUERY_EXECUTION_TRACKING :
2432+ assert actual_execution_stats ["incremental_model" ].total_rows_processed == 0
2433+ # snowflake doesn't track rows for CTAS
2434+ assert actual_execution_stats ["full_model" ].total_rows_processed == (
2435+ None if ctx .mark .startswith ("snowflake" ) else 3
2436+ )
24392437
24402438 # make and validate unmodified dev environment
24412439 no_change_plan : Plan = context .plan_builder (
0 commit comments