@@ -142,7 +142,7 @@ public static String tblCreateSQL(String table) {
142142
143143 @ Test (groups = {"integration" })
144144 public void testVariantWithSimpleDataTypes () throws Exception {
145- if (isVersionMatch ("(,24.8]" ) || isCloud () ) {
145+ if (isVersionMatch ("(,24.8]" )) {
146146 return ;
147147 }
148148
@@ -183,7 +183,7 @@ public void testVariantWithSimpleDataTypes() throws Exception {
183183 continue dataTypesLoop ;
184184
185185 }
186- b .append (")) Engine = MergeTree ORDER BY () SETTINGS enable_variant_type =1" );
186+ b .append (")) Engine = MergeTree ORDER BY () SETTINGS allow_experimental_variant_type =1" );
187187
188188 client .execute (b .toString ());
189189 client .register (DTOForVariantPrimitivesTests .class , client .getTableSchema (table ));
@@ -396,7 +396,7 @@ public void testVariantWithTuple() throws Exception {
396396
397397 @ Test (groups = {"integration" })
398398 public void testDynamicWithPrimitives () throws Exception {
399- if (isVersionMatch ("(,24.8]" ) || isCloud () ) {
399+ if (isVersionMatch ("(,24.8]" )) {
400400 return ;
401401 }
402402
@@ -588,14 +588,14 @@ public static class DTOForDynamicPrimitivesTests {
588588 }
589589
590590 private void testDynamicWith (String withWhat , Object [] values , String [] expectedStrValues ) throws Exception {
591- if (isVersionMatch ("(,24.8]" ) || isCloud () ) {
591+ if (isVersionMatch ("(,24.8]" )) {
592592 return ;
593593 }
594594
595595 String table = "test_dynamic_with_" + withWhat ;
596596 client .execute ("DROP TABLE IF EXISTS " + table ).get ();
597597 client .execute (tableDefinition (table , "rowId Int32" , "field Dynamic" ),
598- (CommandSettings ) new CommandSettings ().serverSetting ("enable_dynamic_type " , "1" )).get ();
598+ (CommandSettings ) new CommandSettings ().serverSetting ("allow_experimental_dynamic_type " , "1" )).get ();
599599
600600 client .register (DTOForDynamicPrimitivesTests .class , client .getTableSchema (table ));
601601
@@ -612,7 +612,7 @@ private void testDynamicWith(String withWhat, Object[] values, String[] expected
612612 }
613613
614614 private void testVariantWith (String withWhat , String [] fields , Object [] values , String [] expectedStrValues ) throws Exception {
615- if (isVersionMatch ("(,24.8]" ) || isCloud () ) {
615+ if (isVersionMatch ("(,24.8]" )) {
616616 return ;
617617 }
618618
@@ -621,7 +621,7 @@ private void testVariantWith(String withWhat, String[] fields, Object[] values,
621621 actualFields [0 ] = "rowId Int32" ;
622622 System .arraycopy (fields , 0 , actualFields , 1 , fields .length );
623623 client .execute ("DROP TABLE IF EXISTS " + table ).get ();
624- client .execute (tableDefinition (table , actualFields ), (CommandSettings ) new CommandSettings ().serverSetting ("enable_variant_type " , "1" )).get ();
624+ client .execute (tableDefinition (table , actualFields ), (CommandSettings ) new CommandSettings ().serverSetting ("allow_experimental_variant_type " , "1" )).get ();
625625
626626 client .register (DTOForVariantPrimitivesTests .class , client .getTableSchema (table ));
627627
0 commit comments