removed-whitespace-from-postgres-and-redshift (#8927)

This commit is contained in:
Abhishek Pandey 2022-11-30 13:16:24 +05:30 committed by GitHub
parent 6a3ce624b7
commit e8edf70374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,8 @@ class PostgresLineageSource(PostgresQueryParserSource, LineageSource):
filters = """ filters = """
AND ( AND (
s.query ILIKE '%%create table %% as select %%' s.query ILIKE '%%create table%%as%%select%%'
OR s.query ILIKE '%%insert %%' OR s.query ILIKE '%%insert%%'
) )
""" """

View File

@ -41,8 +41,8 @@ class RedshiftLineageSource(RedshiftQueryParserSource, LineageSource):
filters = """ filters = """
AND ( AND (
querytxt ILIKE 'create table %% as select %%' querytxt ILIKE '%%create table%%as%%select%%'
OR querytxt ILIKE 'insert %%' OR querytxt ILIKE '%%insert%%'
) )
""" """

View File

@ -25,8 +25,8 @@ class RedshiftUsageSource(RedshiftQueryParserSource, UsageSource):
AND querytxt NOT ILIKE 'fetch %%' AND querytxt NOT ILIKE 'fetch %%'
AND querytxt NOT ILIKE 'padb_fetch_sample: %%' AND querytxt NOT ILIKE 'padb_fetch_sample: %%'
AND querytxt NOT ILIKE 'Undoing %% transactions on table %% with current xid%%' AND querytxt NOT ILIKE 'Undoing %% transactions on table %% with current xid%%'
AND querytxt NOT ILIKE 'create table %% as select %%' AND querytxt NOT ILIKE '%%create table%%as%%select%%'
AND querytxt NOT ILIKE 'insert %%' AND querytxt NOT ILIKE '%%insert%%'
""" """
sql_stmt = REDSHIFT_SQL_STATEMENT sql_stmt = REDSHIFT_SQL_STATEMENT