@@ -22,6 +22,7 @@ public class SamplePOJO {
22
22
private byte byteValue ;
23
23
private Byte boxedByte ;
24
24
private int int8 ;
25
+ private Integer int8_null ;
25
26
private int int8_default ;
26
27
private int int16 ;
27
28
private Short boxedShort ;
@@ -100,6 +101,7 @@ public SamplePOJO() {
100
101
byteValue = (byte ) random .nextInt ();
101
102
boxedByte = (byte ) random .nextInt ();
102
103
int8 = random .nextInt (128 );
104
+ int8_null = null ;
103
105
int16 = random .nextInt (32768 );
104
106
boxedShort = (short ) random .nextInt ();
105
107
int32 = random .nextInt ();
@@ -175,7 +177,7 @@ public SamplePOJO() {
175
177
}
176
178
177
179
array = Arrays .asList ("a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" , "k" , "l" , "m" , "n" , "o" , "p" , "q" , "r" , "s" , "t" , "u" , "v" , "w" , "x" , "y" , "z" );
178
- tuple = Arrays .asList (uint64 , int32 , string );
180
+ tuple = Arrays .asList (uint64 , int32 , string , null );
179
181
map = new HashMap <>();
180
182
for (int i = 0 ; i < 10 ; i ++) {
181
183
map .put (String .valueOf ((char ) ('a' + i )), i + 1 );
@@ -278,6 +280,14 @@ public void setInt8(int int8) {
278
280
this .int8 = int8 ;
279
281
}
280
282
283
+ public Integer getInt8_null () {
284
+ return int8_null ;
285
+ }
286
+
287
+ public void setInt8_null (Integer int8_null ) {
288
+ this .int8_null = int8_null ;
289
+ }
290
+
281
291
public int getInt8Default () {
282
292
return int8_default ;
283
293
}
@@ -721,6 +731,7 @@ public static String generateTableCreateSQL(String tableName) {
721
731
return "CREATE TABLE " + tableName + " (" +
722
732
"byteValue Int8," +
723
733
"int8 Int8, " +
734
+ "int8_null Nullable(Int8), " +
724
735
"boxedByte Int8, " +
725
736
"int8_default Int8 DEFAULT 0, " +
726
737
"int16 Int16, " +
@@ -770,7 +781,7 @@ public static String generateTableCreateSQL(String tableName) {
770
781
"ipv4 IPv4, " +
771
782
"ipv6 IPv6, " +
772
783
"array Array(String), " +
773
- "tuple Tuple(UInt64, Int32, String), " +
784
+ "tuple Tuple(UInt64, Int32, String, Nullable(Int16) ), " +
774
785
"map Map(String, Int32), " +
775
786
"nested Nested (innerInt Int32, innerString String, " +
776
787
"innerNullableInt Nullable(Int32)), " +
0 commit comments