Skip to content

Commit

Permalink
Fix test failures on 22.7
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Jul 24, 2022
1 parent 3c4b863 commit de97ada
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -82,7 +82,7 @@ public void testBatchInsert2() throws Exception {
"string String," +
"int32 Int32," +
"float64 Float64" +
") ENGINE = MergeTree(date, (date), 8192)"
") ENGINE = MergeTree order by date"
);

Date date = new Date(dateFormat.parse("1989-01-30").getTime());
Expand Down Expand Up @@ -194,7 +194,7 @@ public void testSimpleInsert() throws Exception {
"string String," +
"int32 Int32," +
"float64 Float64" +
") ENGINE = MergeTree(date, (date), 8192)"
") ENGINE = MergeTree order by date"
);

Date date = new Date(dateFormat.parse("1989-01-30").getTime());
Expand Down Expand Up @@ -237,7 +237,7 @@ public void batchInsertNulls() throws Exception {
"string Nullable(String)," +
"int32 Nullable(Int32)," +
"float64 Nullable(Float64)" +
") ENGINE = MergeTree(date, (date), 8192)"
") ENGINE = MergeTree order by date"
);

ClickHousePreparedStatement statement = (ClickHousePreparedStatement) connection.prepareStatement(
Expand Down
Expand Up @@ -173,7 +173,7 @@ private Object[][] getTableEngines() {
new String[] {"TinyLog"},
new String[] {"Log"},
new String[] {"Memory"},
new String[] {"MergeTree(foo, (foo), 8192)"}
new String[] {"MergeTree order by foo"}
};
// unfortunately this is hard to test
// new String[] {"Dictionary(myDict)"},
Expand Down
Expand Up @@ -548,7 +548,7 @@ public void testTimeZone() throws Exception {
final ClickHouseStatement statement = connection.createStatement();
connection.createStatement().execute("DROP TABLE IF EXISTS binary_tz");
connection.createStatement().execute(
"CREATE TABLE binary_tz (date Date, dateTime DateTime) ENGINE = MergeTree(date, (date), 8192)");
"CREATE TABLE binary_tz (date Date, dateTime DateTime) ENGINE = MergeTree order by date");

//
final Date date1 = new Date(1497474018000L);
Expand Down

0 comments on commit de97ada

Please sign in to comment.