Skip to content

Commit cfba24a

Browse files
committed
Fixed old test
1 parent d5286f7 commit cfba24a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHouseStatementTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,12 +801,13 @@ public void testSimpleAggregateFunction() throws SQLException {
801801
try (ClickHouseConnection conn = newConnection(new Properties());
802802
ClickHouseStatement stmt = conn.createStatement();) {
803803
stmt.execute("drop table if exists test_simple_agg_func; "
804-
+ "CREATE TABLE test_simple_agg_func (x SimpleAggregateFunction(max, UInt64)) ENGINE=AggregatingMergeTree ORDER BY tuple(); "
805-
+ "INSERT INTO test_simple_agg_func VALUES(1)");
804+
+ "CREATE TABLE test_simple_agg_func (id UInt64, x SimpleAggregateFunction(max, UInt64)) ENGINE=AggregatingMergeTree ORDER BY tuple(id); "
805+
+ "INSERT INTO test_simple_agg_func VALUES(1, 1)");
806806

807807
try (ResultSet rs = stmt.executeQuery("select * from test_simple_agg_func")) {
808808
Assert.assertTrue(rs.next(), "Should have one row");
809809
Assert.assertEquals(rs.getLong(1), 1L);
810+
Assert.assertEquals(rs.getLong(2), 1L);
810811
Assert.assertFalse(rs.next(), "Should have only one row");
811812
}
812813
}

0 commit comments

Comments
 (0)