Skip to content

Commit

Permalink
Get the data_type and comment of child column instead of its parent (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
buu-nguyen authored Jan 6, 2024
1 parent 5812254 commit 187a7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbt_osmosis/core/osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ def get_columns_meta(self, catalog_key: CatalogKey) -> Dict[str, ColumnMetadata]
continue
columns[self.column_casing(exp.name)] = ColumnMetadata(
name=self.column_casing(exp.name),
type=c.dtype,
type=exp.dtype,
index=None,
comment=getattr(c, "comment", None),
comment=getattr(exp, "comment", None),
)
except Exception as error:
logger().info(
Expand Down

0 comments on commit 187a7db

Please sign in to comment.