Skip to content

Commit

Permalink
feat(ingest/redshift): filter out system queries from usage (datahub-…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored and sleeperdeep committed Jun 25, 2024
1 parent 89b6e10 commit 689e3b8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ def usage_query(start_time: str, end_time: str, database: str) -> str:
AND ss.starttime < '{end_time}'
AND sti.database = '{database}'
AND sq.aborted = 0
AND NOT (
sq.querytxt LIKE 'small table validation: %'
OR sq.querytxt LIKE 'Small table conversion: %'
OR sq.querytxt LIKE 'padb_fetch_sample: %'
)
ORDER BY ss.endtime DESC;
""".strip()

Expand Down

0 comments on commit 689e3b8

Please sign in to comment.