Skip to content

Commit

Permalink
Handle extra columns returned from Snowflake SHOW COLUMNS command (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars-lan authored Jan 17, 2024
1 parent cb3fb2e commit 6db8cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion metaphor/snowflake/profile/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def _fetch_columns_async(

# This could include columns in views or stream tables.
for row in cursor:
# See https://docs.snowflake.com/en/sql-reference/sql/show-columns#output
(
table_name,
table_schema,
Expand All @@ -168,7 +169,7 @@ def _fetch_columns_async(
_,
_,
table_catalog,
_,
*_,
) = row
column_info_map[Table(table_catalog, table_schema, table_name)].append(
(column_name, data_type)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metaphor-connectors"
version = "0.13.107"
version = "0.13.108"
license = "Apache-2.0"
description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app."
authors = ["Metaphor <[email protected]>"]
Expand Down

0 comments on commit 6db8cb9

Please sign in to comment.