hcrosse commented on code in PR #2784:
URL: https://github.com/apache/iceberg-go/pull/2784#discussion_r4759561520
##########
table/compaction/compaction.go:
##########
@@ -171,6 +172,12 @@ func (cfg Config) Validate() error {
return fmt.Errorf("max group size (%d) must be zero or at least
the target file size (%d)",
cfg.MaxGroupSizeBytes, cfg.TargetFileSizeBytes)
}
+ if cfg.PackingLookback == 0 {
+ return fmt.Errorf("packing lookback must be >= 1, got %d",
cfg.PackingLookback)
+ }
+ if cfg.PackingLookback > math.MaxInt {
+ return fmt.Errorf("packing lookback (%d) exceeds max int (%d)",
cfg.PackingLookback, math.MaxInt)
Review Comment:
Added a compatibility note for `compaction.Config.Validate` and
`PackingLookback` under `Unreleased compatibility notes` in
`website/src/releases.md`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]