Skip to content

Commit

Permalink
Add missing @JsonCreator/@JsonProperty in BlackHoleMergeTableHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
djsstarburst authored and electrum committed Aug 15, 2022
1 parent 30fd229 commit 8ddd8ed
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package io.trino.plugin.blackhole;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.trino.spi.connector.ConnectorMergeTableHandle;

import static java.util.Objects.requireNonNull;
Expand All @@ -22,11 +24,13 @@ public class BlackHoleMergeTableHandle
{
private final BlackHoleTableHandle tableHandle;

public BlackHoleMergeTableHandle(BlackHoleTableHandle tableHandle)
@JsonCreator
public BlackHoleMergeTableHandle(@JsonProperty("tableHandle") BlackHoleTableHandle tableHandle)
{
this.tableHandle = requireNonNull(tableHandle, "tableHandle is null");
}

@JsonProperty
@Override
public BlackHoleTableHandle getTableHandle()
{
Expand Down

0 comments on commit 8ddd8ed

Please sign in to comment.