Skip to content

Commit

Permalink
Add value transform to Iceberg ColumnTransform
Browse files Browse the repository at this point in the history
`io.trino.spi.connector.BucketFunction` interface is currently
per-position. Let `ColumnTransform` define both block-based and
block,position-based transforms.
  • Loading branch information
findepi committed Nov 4, 2021
1 parent f709aae commit 863da2b
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ private static List<PartitionColumn> toPartitionColumns(List<IcebergColumnHandle
checkArgument(channel != null, "partition field not found: %s", field);
Type inputType = handles.get(channel).getType();
ColumnTransform transform = getColumnTransform(field, inputType);
return new PartitionColumn(field, channel, inputType, transform.getType(), transform.getTransform());
return new PartitionColumn(field, channel, inputType, transform.getType(), transform.getBlockTransform());
})
.collect(toImmutableList());
}
Expand Down
Loading

0 comments on commit 863da2b

Please sign in to comment.