mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-31 21:27:58 +00:00
Fix Snowflake get comments query (#5451)
This commit is contained in:
parent
8dfda81408
commit
0a9e36f1b4
@ -37,8 +37,8 @@ def run_ingest(config_path: str) -> None:
|
|||||||
config_dict = load_config_file(config_file)
|
config_dict = load_config_file(config_file)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.debug(f"Using config: {config_dict}")
|
|
||||||
workflow = Workflow.create(config_dict)
|
workflow = Workflow.create(config_dict)
|
||||||
|
logger.debug(f"Using config: {workflow.config}")
|
||||||
except ValidationError as e:
|
except ValidationError as e:
|
||||||
click.echo(e, err=True)
|
click.echo(e, err=True)
|
||||||
logger.debug(traceback.format_exc())
|
logger.debug(traceback.format_exc())
|
||||||
|
@ -324,8 +324,8 @@ select TABLE_NAME from information_schema.tables where TABLE_SCHEMA = '{}' and T
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
SNOWFLAKE_GET_COMMENTS = """
|
SNOWFLAKE_GET_COMMENTS = """
|
||||||
select COMMENT
|
select COMMENT
|
||||||
from SHOP_DB.information_schema.TABLES
|
from information_schema.TABLES
|
||||||
WHERE TABLE_SCHEMA = '{schema_name}'
|
WHERE TABLE_SCHEMA = '{schema_name}'
|
||||||
AND TABLE_NAME = '{table_name}'
|
AND TABLE_NAME = '{table_name}'
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user