slfan1989 opened a new issue, #2459:
URL: https://github.com/apache/iceberg-go/issues/2459

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   `iceberg upgrade --dry-run` reports success for unsupported target format 
versions because the dry-run path returns before the upgrade transaction 
validates the target.
   
   ### Steps to reproduce
   
   1. Configure the Iceberg CLI to access a catalog with an existing Iceberg v1 
table named `db.events`.
   2. Run:
   ```sh
      iceberg upgrade --dry-run db.events 999
      echo $?
   ```
   
   ### Actual behavior
   
   The command exits with status `0` and prints:
   
   ```text
   [DRY RUN] Would upgrade db.events from format version 1 to 999.
   ```
   
   The upgrade transaction rejects the same target with an `invalid format 
version` error.
   
   ### Expected behavior
   
   The dry run should validate the target format version using the same 
transaction logic as the actual upgrade. An unsupported target should produce 
an `invalid format version` error and exit with a non-zero status. A valid dry 
run should still display the planned upgrade without committing any changes.


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