From b062b4637c9960239811c2c3a7f5feffd3f73d8b Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Tue, 1 Sep 2020 11:45:14 -0400 Subject: [PATCH] Check for UnparsedColumn instance of column to set quote value --- core/dbt/parser/schemas.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/dbt/parser/schemas.py b/core/dbt/parser/schemas.py index 85fd2f974e1..ddffea431ca 100644 --- a/core/dbt/parser/schemas.py +++ b/core/dbt/parser/schemas.py @@ -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 )