File tree 1 file changed +6
-0
lines changed
client-v2/src/test/java/com/clickhouse/client/insert
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,26 @@ public class SimplePOJO {
16
16
private static final Logger LOGGER = LoggerFactory .getLogger (SimplePOJO .class );
17
17
private int int32 ;
18
18
private String str ;
19
+ private String hexed ;
19
20
20
21
public SimplePOJO () {
21
22
long seed = System .currentTimeMillis ();
22
23
final Random random = new Random (seed );
23
24
this .int32 = random .nextInt ();
24
25
this .str = RandomStringUtils .randomAlphabetic (1 , 256 );
26
+ this .hexed = RandomStringUtils .randomAlphanumeric (4 );
25
27
}
26
28
27
29
public static String generateTableCreateSQL (String tableName ) {
28
30
return "CREATE TABLE " + tableName + " (" +
29
31
"int32 Int32, " +
30
32
"str String, " +
31
33
"int64 Int64 MATERIALIZED abs(toInt64(int32)), " +
34
+ "str_lower String ALIAS lower(str), " +
35
+ "unhexed String EPHEMERAL, " +
36
+ "hexed FixedString(4) DEFAULT unhex(unhexed), " +
32
37
") ENGINE = MergeTree ORDER BY ()" ;
33
38
}
34
39
35
40
}
41
+
You can’t perform that action at this time.
0 commit comments