File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
flinkx-kudu/flinkx-kudu-writer/src/main/java/com/dtstack/flinkx/kudu/writer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4040
4141import java .io .IOException ;
4242import java .nio .ByteBuffer ;
43+ import java .sql .Date ;
4344import java .sql .Timestamp ;
4445import java .util .List ;
4546
@@ -132,7 +133,7 @@ private void writeData(Row row) throws WriteRecordException {
132133 case INT32 : partialRow .addInt (columnIndex , ValueUtil .getIntegerVal (val )); break ;
133134 case INT64 : partialRow .addLong (columnIndex , ValueUtil .getLongVal (val )); break ;
134135 case UNIXTIME_MICROS :
135- if (val instanceof Timestamp ) {
136+ if (val instanceof Timestamp || val instanceof Date ) {
136137 partialRow .addTimestamp (columnIndex , ValueUtil .getTimestampVal (val ));
137138 } else {
138139 partialRow .addLong (columnIndex , ValueUtil .getLongVal (val ));
You can’t perform that action at this time.
0 commit comments