diff --git a/ingestion/src/metadata/utils/sql_queries.py b/ingestion/src/metadata/utils/sql_queries.py index 26224f48912..4fc5e37c2bd 100644 --- a/ingestion/src/metadata/utils/sql_queries.py +++ b/ingestion/src/metadata/utils/sql_queries.py @@ -317,7 +317,8 @@ NEO4J_AMUNDSEN_DASHBOARD_QUERY = textwrap.dedent( VERTICA_GET_COLUMNS = textwrap.dedent( """ SELECT column_name, data_type, column_default, is_nullable, comment - FROM v_catalog.columns col left join v_catalog.comments com on col.table_id=com.object_id and com.object_type='COLUMN' and col.column_name=com.child_object # pylint: disable=line-too-long + FROM v_catalog.columns col left join v_catalog.comments com on col.table_id=com.object_id + and com.object_type='COLUMN' and col.column_name=com.child_object WHERE lower(table_name) = '{table}' AND {schema_condition} UNION ALL