We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea52aeb commit 228c64bCopy full SHA for 228c64b
core/src/main/java/com/dtstack/flink/sql/util/RowDataConvert.java
@@ -45,7 +45,9 @@ public static BaseRow convertToBaseRow(Row row) {
45
int length = row.getArity();
46
GenericRow genericRow = new GenericRow(length);
47
for (int i = 0; i < length; i++) {
48
- if (row.getField(i) instanceof String) {
+ if (row.getField(i) == null) {
49
+ genericRow.setField(i, row.getField(i));
50
+ } else if (row.getField(i) instanceof String) {
51
genericRow.setField(i, BinaryString.fromString((String) row.getField(i)));
52
} else if (row.getField(i) instanceof Timestamp) {
53
SqlTimestamp newTimestamp = SqlTimestamp.fromTimestamp(((Timestamp) row.getField(i)));
0 commit comments