fix(ingest/dremio): update dremio sql query to retrieve queried datasets in sql jobs (#11801)

This commit is contained in:
Jonny Dixon 2024-11-07 09:24:10 +00:00 committed by GitHub
parent f13d544152
commit 0d57fbd428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,7 +242,7 @@ class DremioSQLQueries:
SYS.JOBS_RECENT
WHERE
STATUS = 'COMPLETED'
AND LENGTH(queried_datasets)>0
AND ARRAY_SIZE(queried_datasets)>0
AND user_name != '$dremio$'
AND query_type not like '%INTERNAL%'
"""
@ -251,10 +251,10 @@ class DremioSQLQueries:
SELECT
*
FROM
SYS.PROJECT.HISTORY.JOBS
sys.project.history.jobs
WHERE
STATUS = 'COMPLETED'
AND LENGTH(queried_datasets)>0
AND ARRAY_SIZE(queried_datasets)>0
AND user_name != '$dremio$'
AND query_type not like '%INTERNAL%'
"""