mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-27 00:31:42 +00:00
fix(profiler): imporve logic for snowflake to pick up DML ran on different WH (#10150)
This commit is contained in:
parent
7d827b6ae8
commit
b62f97f27b
@ -322,8 +322,7 @@ def _(
|
||||
metric_results: List[Dict] = []
|
||||
|
||||
information_schema_query_history = """
|
||||
SELECT * FROM table(information_schema.query_history_by_warehouse(
|
||||
warehouse_name=>CURRENT_WAREHOUSE(),
|
||||
SELECT * FROM table(information_schema.query_history(
|
||||
end_time_range_start=>to_timestamp_ltz(DATEADD(HOUR, -{decrement_start}, CURRENT_TIMESTAMP())),
|
||||
end_time_range_end=>to_timestamp_ltz(DATEADD(HOUR, -{decrement_end}, CURRENT_TIMESTAMP())),
|
||||
result_limit=>10000
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user