Fix Snowflake get comments query (#5451)

This commit is contained in:
Pere Miquel Brull 2022-06-15 03:02:30 +02:00 committed by GitHub
parent 8dfda81408
commit 0a9e36f1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -37,8 +37,8 @@ def run_ingest(config_path: str) -> None:
config_dict = load_config_file(config_file)
try:
logger.debug(f"Using config: {config_dict}")
workflow = Workflow.create(config_dict)
logger.debug(f"Using config: {workflow.config}")
except ValidationError as e:
click.echo(e, err=True)
logger.debug(traceback.format_exc())

View File

@ -324,8 +324,8 @@ select TABLE_NAME from information_schema.tables where TABLE_SCHEMA = '{}' and T
"""
SNOWFLAKE_GET_COMMENTS = """
select COMMENT
from SHOP_DB.information_schema.TABLES
select COMMENT
from information_schema.TABLES
WHERE TABLE_SCHEMA = '{schema_name}'
AND TABLE_NAME = '{table_name}'
"""