2222 set_catalog ,
2323)
2424from sqlmesh .core .node import IntervalUnit
25- from sqlmesh .core .schema_diff import SchemaDiffer , TableAlterOperation
25+ from sqlmesh .core .schema_diff import TableAlterOperation , NestedSupport
2626from sqlmesh .utils import optional_import , get_source_columns_to_types
2727from sqlmesh .utils .date import to_datetime
2828from sqlmesh .utils .errors import SQLMeshError
@@ -68,8 +68,8 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
6868 MAX_COLUMN_COMMENT_LENGTH = 1024
6969 SUPPORTED_DROP_CASCADE_OBJECT_KINDS = ["SCHEMA" ]
7070
71- SCHEMA_DIFFER = SchemaDiffer (
72- compatible_types = {
71+ SCHEMA_DIFFER_KWARGS = {
72+ " compatible_types" : {
7373 exp .DataType .build ("INT64" , dialect = DIALECT ): {
7474 exp .DataType .build ("NUMERIC" , dialect = DIALECT ),
7575 exp .DataType .build ("FLOAT64" , dialect = DIALECT ),
@@ -83,17 +83,17 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
8383 exp .DataType .build ("DATETIME" , dialect = DIALECT ),
8484 },
8585 },
86- coerceable_types = {
86+ " coerceable_types" : {
8787 exp .DataType .build ("FLOAT64" , dialect = DIALECT ): {
8888 exp .DataType .build ("BIGNUMERIC" , dialect = DIALECT ),
8989 },
9090 },
91- support_coercing_compatible_types = True ,
92- parameterized_type_defaults = {
91+ " support_coercing_compatible_types" : True ,
92+ " parameterized_type_defaults" : {
9393 exp .DataType .build ("DECIMAL" , dialect = DIALECT ).this : [(38 , 9 ), (0 ,)],
9494 exp .DataType .build ("BIGDECIMAL" , dialect = DIALECT ).this : [(76.76 , 38 ), (0 ,)],
9595 },
96- types_with_unlimited_length = {
96+ " types_with_unlimited_length" : {
9797 # parameterized `STRING(n)` can ALTER to unparameterized `STRING`
9898 exp .DataType .build ("STRING" , dialect = DIALECT ).this : {
9999 exp .DataType .build ("STRING" , dialect = DIALECT ).this ,
@@ -103,9 +103,8 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
103103 exp .DataType .build ("BYTES" , dialect = DIALECT ).this ,
104104 },
105105 },
106- support_nested_operations = True ,
107- support_nested_drop = False ,
108- )
106+ "nested_support" : NestedSupport .ALL_BUT_DROP ,
107+ }
109108
110109 @property
111110 def client (self ) -> BigQueryClient :
0 commit comments