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
@@ -67,8 +67,8 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
6767 MAX_TABLE_COMMENT_LENGTH = 1024
6868 MAX_COLUMN_COMMENT_LENGTH = 1024
6969
70- SCHEMA_DIFFER = SchemaDiffer (
71- compatible_types = {
70+ SCHEMA_DIFFER_KWARGS = {
71+ " compatible_types" : {
7272 exp .DataType .build ("INT64" , dialect = DIALECT ): {
7373 exp .DataType .build ("NUMERIC" , dialect = DIALECT ),
7474 exp .DataType .build ("FLOAT64" , dialect = DIALECT ),
@@ -82,17 +82,17 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
8282 exp .DataType .build ("DATETIME" , dialect = DIALECT ),
8383 },
8484 },
85- coerceable_types = {
85+ " coerceable_types" : {
8686 exp .DataType .build ("FLOAT64" , dialect = DIALECT ): {
8787 exp .DataType .build ("BIGNUMERIC" , dialect = DIALECT ),
8888 },
8989 },
90- support_coercing_compatible_types = True ,
91- parameterized_type_defaults = {
90+ " support_coercing_compatible_types" : True ,
91+ " parameterized_type_defaults" : {
9292 exp .DataType .build ("DECIMAL" , dialect = DIALECT ).this : [(38 , 9 ), (0 ,)],
9393 exp .DataType .build ("BIGDECIMAL" , dialect = DIALECT ).this : [(76.76 , 38 ), (0 ,)],
9494 },
95- types_with_unlimited_length = {
95+ " types_with_unlimited_length" : {
9696 # parameterized `STRING(n)` can ALTER to unparameterized `STRING`
9797 exp .DataType .build ("STRING" , dialect = DIALECT ).this : {
9898 exp .DataType .build ("STRING" , dialect = DIALECT ).this ,
@@ -102,9 +102,8 @@ class BigQueryEngineAdapter(InsertOverwriteWithMergeMixin, ClusteredByMixin, Row
102102 exp .DataType .build ("BYTES" , dialect = DIALECT ).this ,
103103 },
104104 },
105- support_nested_operations = True ,
106- support_nested_drop = False ,
107- )
105+ "nested_support" : NestedSupport .ALL_BUT_DROP ,
106+ }
108107
109108 @property
110109 def client (self ) -> BigQueryClient :
0 commit comments