lasdf1234 opened a new pull request, #14813:
URL: https://github.com/apache/gravitino/pull/14813

   ### What changes were proposed in this pull request?
   
   - Add `IcebergJobUtils.printCliUsage` / `formatCliUsage` / 
`withSparkConfUsage` with a shared `--spark-conf` usage note aligned to 
`filterCustomSparkConfigs`
   - Route expire, rewrite-data, rewrite-manifests, remove-orphan, and 
update-stats `printUsage()` through the helper (consistent Usage / Required / 
Optional / Examples on `System.err`)
   - Remove the misleading “Cannot override catalog/extensions” notes from 
expire and rewrite-data
   - Cover the shared usage text in `TestIcebergJobUtils`
   
   ### Why are the changes needed?
   
   Built-in Iceberg job CLIs each maintained their own `printUsage()` with 
inconsistent format and incorrect spark-conf guidance. CLI jobs must pass 
Iceberg catalog (and usually extensions) via `--spark-conf`; those keys are not 
blocked by `filterCustomSparkConfigs`.
   
   Fixes #14811
   
   ### Does this PR introduce _any_ user-facing change?
   
   - CLI `--help` / invalid-args usage text for the five built-in Iceberg jobs 
is unified and the spark-conf note is corrected
   
   ### How was this patch tested?
   
   - `./gradlew :maintenance:jobs:spotlessApply :maintenance:jobs:test --tests 
org.apache.gravitino.maintenance.jobs.iceberg.TestIcebergJobUtils -PskipITs`
   
   
   Made with [Cursor](https://cursor.com)


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

Reply via email to