Skip to content

Commit 9484a42

Browse files
committed
Add testing for ALIAS and EPHEMERAL as well
1 parent 3a2904c commit 9484a42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client-v2/src/test/java/com/clickhouse/client/insert/SimplePOJO.java

+6
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ public class SimplePOJO {
1616
private static final Logger LOGGER = LoggerFactory.getLogger(SimplePOJO.class);
1717
private int int32;
1818
private String str;
19+
private String hexed;
1920

2021
public SimplePOJO() {
2122
long seed = System.currentTimeMillis();
2223
final Random random = new Random(seed);
2324
this.int32 = random.nextInt();
2425
this.str = RandomStringUtils.randomAlphabetic(1, 256);
26+
this.hexed = RandomStringUtils.randomAlphanumeric(4);
2527
}
2628

2729
public static String generateTableCreateSQL(String tableName) {
2830
return "CREATE TABLE " + tableName + " (" +
2931
"int32 Int32, " +
3032
"str String, " +
3133
"int64 Int64 MATERIALIZED abs(toInt64(int32)), " +
34+
"str_lower String ALIAS lower(str), " +
35+
"unhexed String EPHEMERAL, " +
36+
"hexed FixedString(4) DEFAULT unhex(unhexed), " +
3237
") ENGINE = MergeTree ORDER BY ()";
3338
}
3439

3540
}
41+

0 commit comments

Comments
 (0)