Skip to content

Commit

Permalink
Reuse already computed schema
Browse files Browse the repository at this point in the history
  • Loading branch information
findinpath authored and findepi committed Sep 19, 2022
1 parent c373dba commit 39e2ff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ private void finishWrite(ConnectorSession session, IcebergTableHandle table, Col
for (CommitTaskData task : commitTasks) {
PartitionSpec partitionSpec = PartitionSpecParser.fromJson(schema, task.getPartitionSpecJson());
Type[] partitionColumnTypes = partitionSpec.fields().stream()
.map(field -> field.transform().getResultType(icebergTable.schema().findType(field.sourceId())))
.map(field -> field.transform().getResultType(schema.findType(field.sourceId())))
.toArray(Type[]::new);
switch (task.getContent()) {
case POSITION_DELETES:
Expand Down

0 comments on commit 39e2ff2

Please sign in to comment.