mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
sql query correct wildcard syntax (#17405)
This commit is contained in:
parent
7033870e71
commit
a67a3241e7
@ -73,3 +73,9 @@ class PostgresUsageSource(PostgresQueryParserSource, UsageSource):
|
||||
)
|
||||
logger.error(f"Source usage processing error - {err}")
|
||||
logger.debug(traceback.format_exc())
|
||||
|
||||
def get_filters(self) -> str:
|
||||
if filter_condition := self.source_config.filterCondition:
|
||||
filter_condition = filter_condition.replace("%", "%%")
|
||||
return f"{self.filters} AND s.{filter_condition}"
|
||||
return self.filters
|
||||
|
Loading…
x
Reference in New Issue
Block a user