Skip to content

Commit

Permalink
[Hotfix][Connector-V2][Hive] Fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
TyrantLucifer committed Nov 4, 2022
1 parent ff8fbab commit 26cf7e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ private ParquetWriter<GenericRecord> getOrCreateWriter(@NonNull String filePath)

@SuppressWarnings("checkstyle:MagicNumber")
private Object resolveObject(Object data, SeaTunnelDataType<?> seaTunnelDataType) {
if (data == null) {
return null;
}
switch (seaTunnelDataType.getSqlType()) {
case ARRAY:
BasicType<?> elementType = ((ArrayType<?, ?>) seaTunnelDataType).getElementType();
Expand Down

0 comments on commit 26cf7e3

Please sign in to comment.