@@ -811,6 +811,7 @@ def _build_schema_exp(
811811 column_descriptions : t .Optional [t .Dict [str , str ]] = None ,
812812 expressions : t .Optional [t .List [exp .PrimaryKey ]] = None ,
813813 is_view : bool = False ,
814+ materialized : bool = False ,
814815 ) -> exp .Schema :
815816 """
816817 Build a schema expression for a table, columns, column comments, and additional schema properties.
@@ -823,6 +824,7 @@ def _build_schema_exp(
823824 target_columns_to_types = target_columns_to_types ,
824825 column_descriptions = column_descriptions ,
825826 is_view = is_view ,
827+ materialized = materialized ,
826828 )
827829 + expressions ,
828830 )
@@ -832,6 +834,7 @@ def _build_column_defs(
832834 target_columns_to_types : t .Dict [str , exp .DataType ],
833835 column_descriptions : t .Optional [t .Dict [str , str ]] = None ,
834836 is_view : bool = False ,
837+ materialized : bool = False ,
835838 ) -> t .List [exp .ColumnDef ]:
836839 engine_supports_schema_comments = (
837840 self .COMMENT_CREATION_VIEW .supports_schema_def
@@ -1260,7 +1263,11 @@ def create_view(
12601263 schema : t .Union [exp .Table , exp .Schema ] = exp .to_table (view_name )
12611264 if target_columns_to_types :
12621265 schema = self ._build_schema_exp (
1263- exp .to_table (view_name ), target_columns_to_types , column_descriptions , is_view = True
1266+ exp .to_table (view_name ),
1267+ target_columns_to_types ,
1268+ column_descriptions ,
1269+ is_view = True ,
1270+ materialized = materialized ,
12641271 )
12651272
12661273 properties = create_kwargs .pop ("properties" , None )
0 commit comments