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 2, 2022
1 parent 1a8f6b1 commit 9392d82
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 9392d82

Please sign in to comment.