Skip to content

Commit

Permalink
Fix JsonProperty annotation in Iceberg
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Mar 29, 2024
1 parent c8629fc commit 342448c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public class IcebergMergeTableHandle
private final IcebergWritableTableHandle insertTableHandle;

@JsonCreator
public IcebergMergeTableHandle(IcebergTableHandle tableHandle, IcebergWritableTableHandle insertTableHandle)
public IcebergMergeTableHandle(
@JsonProperty("tableHandle") IcebergTableHandle tableHandle,
@JsonProperty("insertTableHandle") IcebergWritableTableHandle insertTableHandle)
{
this.tableHandle = requireNonNull(tableHandle, "tableHandle is null");
this.insertTableHandle = requireNonNull(insertTableHandle, "insertTableHandle is null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public class IcebergWritableTableHandle
public IcebergWritableTableHandle(
@JsonProperty("name") SchemaTableName name,
@JsonProperty("schemaAsJson") String schemaAsJson,
@JsonProperty("partitionSpecsAsJson") Map<Integer, String> partitionsSpecsAsJson,
@JsonProperty("partitionsSpecsAsJson") Map<Integer, String> partitionsSpecsAsJson,
@JsonProperty("partitionSpecId") int partitionSpecId,
@JsonProperty("sortOrder") List<TrinoSortField> sortOrder,
@JsonProperty("inputColumns") List<IcebergColumnHandle> inputColumns,
@JsonProperty("outputPath") String outputPath,
@JsonProperty("fileFormat") IcebergFileFormat fileFormat,
@JsonProperty("properties") Map<String, String> storageProperties,
@JsonProperty("storageProperties") Map<String, String> storageProperties,
@JsonProperty("retryMode") RetryMode retryMode,
@JsonProperty("fileIoProperties") Map<String, String> fileIoProperties)
{
Expand Down

0 comments on commit 342448c

Please sign in to comment.