Skip to content
3 changes: 3 additions & 0 deletions core/src/main/java/org/apache/iceberg/TableProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,7 @@ private TableProperties() {}

public static final String WRITE_AUDIT_PUBLISH_ENABLED = "write.wap.enabled";
public static final String WRITE_AUDIT_PUBLISH_ENABLED_DEFAULT = "false";

public static final String WRITE_TARGET_FILE_SIZE = "write.target-file-size";
public static final long WRITE_TARGET_FILE_SIZE_DEFAULT = Long.MAX_VALUE;
}
2 changes: 2 additions & 0 deletions site/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Iceberg tables support table properties to configure table behavior, like the de
| write.metadata.compression-codec | none | Metadata compression codec; none or gzip |
| write.metadata.metrics.default | truncate(16) | Default metrics mode for all columns in the table; none, counts, truncate(length), or full |
| write.metadata.metrics.column.col1 | (not set) | Metrics mode for column 'col1' to allow per-column tuning; none, counts, truncate(length), or full |
| write.target-file-size | Long.MAX_VALUE | Controls the size of files generated to target about this many bytes. |
Comment thread
xabriel marked this conversation as resolved.
Outdated

### Table behavior properties

Expand Down Expand Up @@ -75,4 +76,5 @@ df.write
| Spark option | Default | Description |
| ------------ | -------------------------- | ------------------------------------------------------------ |
| write-format | Table write.format.default | File format to use for this write operation; parquet or avro |
| target-file-size | As per table property | Overrides this table's write.target-file-size |

Loading