mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 01:40:00 +00:00
removed-whitespace-from-postgres-and-redshift (#8927)
This commit is contained in:
parent
6a3ce624b7
commit
e8edf70374
@ -32,8 +32,8 @@ class PostgresLineageSource(PostgresQueryParserSource, LineageSource):
|
||||
|
||||
filters = """
|
||||
AND (
|
||||
s.query ILIKE '%%create table %% as select %%'
|
||||
OR s.query ILIKE '%%insert %%'
|
||||
s.query ILIKE '%%create table%%as%%select%%'
|
||||
OR s.query ILIKE '%%insert%%'
|
||||
)
|
||||
"""
|
||||
|
||||
|
@ -41,8 +41,8 @@ class RedshiftLineageSource(RedshiftQueryParserSource, LineageSource):
|
||||
|
||||
filters = """
|
||||
AND (
|
||||
querytxt ILIKE 'create table %% as select %%'
|
||||
OR querytxt ILIKE 'insert %%'
|
||||
querytxt ILIKE '%%create table%%as%%select%%'
|
||||
OR querytxt ILIKE '%%insert%%'
|
||||
)
|
||||
"""
|
||||
|
||||
|
@ -25,8 +25,8 @@ class RedshiftUsageSource(RedshiftQueryParserSource, UsageSource):
|
||||
AND querytxt NOT ILIKE 'fetch %%'
|
||||
AND querytxt NOT ILIKE 'padb_fetch_sample: %%'
|
||||
AND querytxt NOT ILIKE 'Undoing %% transactions on table %% with current xid%%'
|
||||
AND querytxt NOT ILIKE 'create table %% as select %%'
|
||||
AND querytxt NOT ILIKE 'insert %%'
|
||||
AND querytxt NOT ILIKE '%%create table%%as%%select%%'
|
||||
AND querytxt NOT ILIKE '%%insert%%'
|
||||
"""
|
||||
|
||||
sql_stmt = REDSHIFT_SQL_STATEMENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user