Skip to content

Commit

Permalink
feat(snowflake): stop querying for usage data when no mix/max dates (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and maggiehays committed Aug 1, 2022
1 parent c0ce729 commit 36987b9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,12 @@ def _get_snowflake_history(self) -> Iterable[SnowflakeJoinedAccessEvent]:
logger.info("Checking usage date ranges")
self._check_usage_date_ranges(engine)

if (
self.report.min_access_history_time is None
or self.report.max_access_history_time is None
):
return

logger.info("Getting usage history")
with PerfTimer() as timer:
query = self._make_usage_query()
Expand Down

0 comments on commit 36987b9

Please sign in to comment.