Skip to content

Commit 75521e9

Browse files
authored
[hotfix] Fix that VariantType doesn't have default constructor (#6162)
1 parent a561e47 commit 75521e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

paimon-flink/paimon-flink-2.0/src/main/java/org/apache/flink/table/types/logical/VariantType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public VariantType(boolean isNullable) {
3636
super(isNullable, LogicalTypeRoot.UNRESOLVED);
3737
}
3838

39+
public VariantType() {
40+
this(true);
41+
}
42+
3943
@Override
4044
public LogicalType copy(boolean b) {
4145
return null;

paimon-flink/paimon-flink1-common/src/main/java/org/apache/flink/table/types/logical/VariantType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public VariantType(boolean isNullable) {
3636
super(isNullable, LogicalTypeRoot.UNRESOLVED);
3737
}
3838

39+
public VariantType() {
40+
this(true);
41+
}
42+
3943
@Override
4044
public LogicalType copy(boolean b) {
4145
return null;

0 commit comments

Comments
 (0)