smaheshwar-pltr opened a new pull request, #19203:
URL: https://github.com/apache/iceberg/pull/19203

   An invalid `encryption.data-key-length` table property, such as `17`, and an 
unsupported `encryption.kms-type` catalog property fail with 
`IllegalStateException`. Both are invalid input, and the checks next to them 
already throw `IllegalArgumentException`: the `StandardEncryptionManager` 
constructor rejects the same data key lengths, a non-numeric length fails with 
`NumberFormatException`, and setting both `encryption.kms-type` and 
`encryption.kms-impl` is rejected the same way. Both now throw 
`IllegalArgumentException`, with the same messages.
   
   The Hive catalog has thrown `IllegalStateException` for both since 1.11.0. 
Client-side encryption in the REST catalog is not released yet, so it never 
ships with the old type.
   
   Testing: `TestRESTCatalog#createTransactionRejectsInvalidDataKeyLength` now 
expects `IllegalArgumentException`, and a new `TestEncryptionUtil` case covers 
an unsupported KMS type.
   
   **AI disclosure:** this PR was authored by Claude with me overseeing.
   


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