Skip to content

Commit 6f4b195

Browse files
committed
fixed settings for variant tests
1 parent e3d3dda commit 6f4b195

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ public void testVariantWithSimpleDataTypes() throws Exception {
183183
continue dataTypesLoop;
184184

185185
}
186-
b.append(")) Engine = MergeTree ORDER BY () SETTINGS allow_experimental_variant_type=1");
186+
b.append(")) Engine = MergeTree ORDER BY ()");
187187

188-
client.execute(b.toString());
188+
client.execute(b.toString(),
189+
(CommandSettings) new CommandSettings().serverSetting("allow_experimental_variant_type", "1"));
189190
client.register(DTOForVariantPrimitivesTests.class, client.getTableSchema(table));
190191

191192
Object value = null;
@@ -621,7 +622,8 @@ private void testVariantWith(String withWhat, String[] fields, Object[] values,
621622
actualFields[0] = "rowId Int32";
622623
System.arraycopy(fields, 0, actualFields, 1, fields.length);
623624
client.execute("DROP TABLE IF EXISTS " + table).get();
624-
client.execute(tableDefinition(table, actualFields), (CommandSettings) new CommandSettings().serverSetting("allow_experimental_variant_type", "1")).get();
625+
client.execute(tableDefinition(table, actualFields),
626+
(CommandSettings) new CommandSettings().serverSetting("allow_experimental_variant_type", "1")).get();
625627

626628
client.register(DTOForVariantPrimitivesTests.class, client.getTableSchema(table));
627629

0 commit comments

Comments
 (0)