We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c948a1 commit abd0395Copy full SHA for abd0395
client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java
@@ -1638,8 +1638,10 @@ public void testGetTableSchemaFromQuery() {
1638
1639
@Test(groups = {"integration"})
1640
public void testGetTableSchemaFromQueryWithParams() {
1641
+ Map<String, Object> queryParams = new HashMap<>();
1642
+ queryParams.put("param1", 2);
1643
TableSchema schema = client.getTableSchemaFromQuery("SELECT toUInt32(1) as col1, {param1:String} as col2",
- Map.of("param1", "value"));
1644
+ queryParams);
1645
Assert.assertNotNull(schema);
1646
Assert.assertEquals(schema.getColumns().size(), 2);
1647
Assert.assertEquals(schema.getColumns().get(0).getColumnName(), "col1");
0 commit comments