Skip to content

Commit

Permalink
[bugfix][plugin][hdfswriter] Fix NullPointerException when writing Pa…
Browse files Browse the repository at this point in the history
…rquet file with null string field value

Add missing 'continue' statement to handle null string field values and prevent NullPointerException during Parquet file writing, fix #1104
  • Loading branch information
wgzhao committed Sep 5, 2024
1 parent 9be92e9 commit 4923ad9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ public static Group transportParRecord(
String typename = columns.get(i).getString(Key.TYPE).toUpperCase();
if (null == column || column.getRawData() == null) {
group.append(colName, "");
continue;
}
SupportHiveDataType columnType = SupportHiveDataType.valueOf(typename);
assert column != null;
switch (columnType) {
case INT:
case INTEGER:
Expand Down

0 comments on commit 4923ad9

Please sign in to comment.