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 3, 2022
1 parent d5431d4 commit 9c882ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private TypeDescription buildFieldWithRowType(SeaTunnelDataType<?> type) {
TypeDescription struct = TypeDescription.createStruct();
SeaTunnelDataType<?>[] fieldTypes = ((SeaTunnelRowType) type).getFieldTypes();
for (int i = 0; i < fieldTypes.length; i++) {
struct.addField(((SeaTunnelRowType) type).getFieldName(i), buildFieldWithRowType(fieldTypes[i]));
struct.addField(((SeaTunnelRowType) type).getFieldName(i).toLowerCase(), buildFieldWithRowType(fieldTypes[i]));
}
return struct;
case NULL:
Expand Down

0 comments on commit 9c882ed

Please sign in to comment.