Skip to content

Commit

Permalink
Add toString to IcebergOptimizeHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
homar authored and findepi committed Apr 5, 2022
1 parent b3584de commit 4a6fdd9
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;
import java.util.Map;

import static com.google.common.base.MoreObjects.toStringHelper;
import static java.util.Objects.requireNonNull;

public class IcebergOptimizeHandle
Expand Down Expand Up @@ -97,4 +98,18 @@ public boolean isRetriesEnabled()
{
return retriesEnabled;
}

@Override
public String toString()
{
return toStringHelper(this)
.add("schemaAsJson", schemaAsJson)
.add("partitionSpecAsJson", partitionSpecAsJson)
.add("tableColumns", tableColumns)
.add("fileFormat", fileFormat)
.add("tableStorageProperties", tableStorageProperties)
.add("maxScannedFileSize", maxScannedFileSize)
.add("retriesEnabled", retriesEnabled)
.toString();
}
}

0 comments on commit 4a6fdd9

Please sign in to comment.