laskoviymishka opened a new pull request, #2086:
URL: https://github.com/apache/iceberg-go/pull/2086

   This is Slice 1 of issue #2083, breaking pre-v1 relocation of the orphan 
cleanup service from the table package into a dedicated table/maintenance 
package.
   
   Changes:
   - Create new table/maintenance package with Service facade
   - Move DeleteOrphanFiles, PlanOrphanFiles, ExecuteOrphanCleanup, and 
PurgeFiles methods from table.Table to maintenance.Service
   - Move exported types: OrphanCleanupOption, OrphanCleanupResult, 
OrphanCleanupPlan, OrphanFile, PrefixMismatchMode (and constants)
   - Move helper functions: WithLocation, WithFilesOlderThan, WithDryRun, 
WithDeleteFunc, WithCleanupMaxConcurrency, WithPrefixMismatchMode, 
WithEqualSchemes, WithEqualAuthorities
   - Export IsGCEnabled from table package (was unexported isGCEnabled)
   - Update all callers in catalog/ and cmd/iceberg/ to use new API: 
maintenance.New(tbl).DeleteOrphanFiles(...) instead of 
tbl.DeleteOrphanFiles(...)
   - Move tests to table/maintenance package
   - Update IsGCEnabled references in transaction.go and updates.go
   
   The new public entry shape maintains ergonomic parity with the original API. 
To use orphan cleanup: create a maintenance service with 
maintenance.New(table), then call its methods.
   
   BREAKING: table.DeleteOrphanFiles, table.PlanOrphanFiles, 
table.ExecuteOrphanCleanup, and table.PurgeFiles are no longer available on 
table.Table. Use table/maintenance package instead.


-- 
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]

Reply via email to