mbutrovich commented on PR #2383:
URL: https://github.com/apache/iceberg-rust/pull/2383#issuecomment-4382983950

   > > 7. find_active_kek selection order
   > >    max_by_key(timestamp) picks the newest unexpired KEK. Java picks the 
first unexpired one by LinkedHashMap insertion order 
(StandardEncryptionManager.java:162-170). The Rust choice is deterministic 
(HashMap iteration isn't, so max_by_key is necessary) and arguably more 
correct. A one-line comment explaining the intentional divergence would help.
   > 
   > Do we think we actually need a comment here? The code seems self 
documenting here?
   
   Agreed.


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