Skip to content

Commit

Permalink
[fix](Hudi-catalog) fix hudi catalog code (apache#27963)
Browse files Browse the repository at this point in the history
In the original logic, `allfields.addall` will modify the objects in `hmsTable`.
  • Loading branch information
BePPPower authored Dec 4, 2023
1 parent 2b4c4bb commit 20d4d7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ public List<Split> getSplits() throws UserException {

List<String> columnNames = new ArrayList<>();
List<String> columnTypes = new ArrayList<>();
List<FieldSchema> allFields = hmsTable.getRemoteTable().getSd().getCols();
List<FieldSchema> allFields = Lists.newArrayList();
allFields.addAll(hmsTable.getRemoteTable().getSd().getCols());
allFields.addAll(hmsTable.getRemoteTable().getPartitionKeys());

for (Schema.Field hudiField : hudiSchema.getFields()) {
Expand Down

0 comments on commit 20d4d7e

Please sign in to comment.