mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-25 10:20:10 +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 = """
|
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%%'
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -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%%'
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user