Skip to content

Commit 342448c

Browse files
committed
Fix JsonProperty annotation in Iceberg
1 parent c8629fc commit 342448c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMergeTableHandle.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public class IcebergMergeTableHandle
2626
private final IcebergWritableTableHandle insertTableHandle;
2727

2828
@JsonCreator
29-
public IcebergMergeTableHandle(IcebergTableHandle tableHandle, IcebergWritableTableHandle insertTableHandle)
29+
public IcebergMergeTableHandle(
30+
@JsonProperty("tableHandle") IcebergTableHandle tableHandle,
31+
@JsonProperty("insertTableHandle") IcebergWritableTableHandle insertTableHandle)
3032
{
3133
this.tableHandle = requireNonNull(tableHandle, "tableHandle is null");
3234
this.insertTableHandle = requireNonNull(insertTableHandle, "insertTableHandle is null");

plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergWritableTableHandle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public class IcebergWritableTableHandle
4747
public IcebergWritableTableHandle(
4848
@JsonProperty("name") SchemaTableName name,
4949
@JsonProperty("schemaAsJson") String schemaAsJson,
50-
@JsonProperty("partitionSpecsAsJson") Map<Integer, String> partitionsSpecsAsJson,
50+
@JsonProperty("partitionsSpecsAsJson") Map<Integer, String> partitionsSpecsAsJson,
5151
@JsonProperty("partitionSpecId") int partitionSpecId,
5252
@JsonProperty("sortOrder") List<TrinoSortField> sortOrder,
5353
@JsonProperty("inputColumns") List<IcebergColumnHandle> inputColumns,
5454
@JsonProperty("outputPath") String outputPath,
5555
@JsonProperty("fileFormat") IcebergFileFormat fileFormat,
56-
@JsonProperty("properties") Map<String, String> storageProperties,
56+
@JsonProperty("storageProperties") Map<String, String> storageProperties,
5757
@JsonProperty("retryMode") RetryMode retryMode,
5858
@JsonProperty("fileIoProperties") Map<String, String> fileIoProperties)
5959
{

0 commit comments

Comments
 (0)