From 81222595d776b4f50b131f456a678ebf3bbe30e3 Mon Sep 17 00:00:00 2001 From: Aseem Bansal Date: Fri, 3 Jan 2025 22:26:15 +0530 Subject: [PATCH] feat(ingest/gc): truncate queryusagestatistics --- .../src/datahub/ingestion/source/gc/datahub_gc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metadata-ingestion/src/datahub/ingestion/source/gc/datahub_gc.py b/metadata-ingestion/src/datahub/ingestion/source/gc/datahub_gc.py index 168b787b85e8be..443368e6d8b4fb 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/gc/datahub_gc.py +++ b/metadata-ingestion/src/datahub/ingestion/source/gc/datahub_gc.py @@ -188,6 +188,9 @@ def truncate_indices(self) -> None: self._truncate_timeseries_helper( aspect_name="dashboardUsageStatistics", entity_type="dashboard" ) + self._truncate_timeseries_helper( + aspect_name="queryusagestatistics", entity_type="query" + ) def _truncate_timeseries_helper(self, aspect_name: str, entity_type: str) -> None: self._truncate_timeseries_with_watch_optional(