Skip to content

Commit

Permalink
Check for UnparsedColumn instance of column to set quote value
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Sep 1, 2020
1 parent ebcf6a2 commit b062b46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/dbt/parser/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,18 @@ def add(
):
tags: List[str] = []
tags.extend(getattr(column, 'tags', ()))
quote: Optional[bool]
if isinstance(column, UnparsedColumn):
quote = column.quote
else:
quote = None
self.column_info[column.name] = ColumnInfo(
name=column.name,
description=description,
data_type=data_type,
meta=meta,
tags=tags,
quote=column.quote,
quote=quote,
_extra=column.extra
)

Expand Down

0 comments on commit b062b46

Please sign in to comment.