mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
* iceberg maintenance: worker setting for the row-group size of compacted files Compaction takes a compacted file's row-group size from the table property `write.parquet.row-group-size-bytes`, and falls back to Iceberg's default, 128 MB, when the table sets none. Most tables set none, and the default target file size is also around 128 MB, so a compacted file usually comes out as a single row group. A reader's column filter (a time range, an id range) can then skip the whole file or nothing inside it. Setting the property table by table is the only way to change that today. This adds a worker setting, `row_group_size_mb`, that sets the size for tables without the property: - default 0 = Iceberg's 128 MB, so nothing changes unless an operator sets it; - the table property still wins over it, so an engine or a user that chose a size keeps it; - `write.parquet.row-group-limit` (rows) is untouched. For example, `row_group_size_mb = 64` gives about two row groups per 128 MB compacted file. Test: `TestRowGroupSizeWorkerSettingAndTableOverride` (the default is 0, the setting is read, a table without the property gets the worker's size, the property wins). `go vet ./weed/worker/tasks/iceberg` and `go test ./weed/worker/tasks/iceberg` pass; `go build ./weed` builds. * iceberg maintenance: raise the descriptor version with row_group_size_mb The admin keeps a stored descriptor unless the new one's version is not lower. With both at 1, an older worker serving a descriptor refresh during a rolling upgrade replaced the form and row_group_size_mb disappeared. The test fails at version 1. * iceberg maintenance: say row_group_size_mb also caps the spatial row group size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * iceberg maintenance: keep at least one row per row group when a row outgrows the byte size With an explicit row limit the estimate had no floor, so a byte size smaller than one row gave 0, which parquet-go takes as no limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * iceberg maintenance: say row_group_size_mb only caps a spatial rewrite's row groups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>