zhjwpku opened a new pull request, #1080:
URL: https://github.com/apache/iceberg-cpp/pull/1080

   SqlCatalog::CreateTable previously always created V2 tables and rejected an 
explicit format-version table property as a reserved key, preventing callers 
from selecting the table format version during creation.
   
   Resolve the requested version in the shared TableMetadata::Make entry point, 
validate it before narrowing, and remove the control property before persisting 
table properties. Keep V2 as the default and preserve the explicit-version 
overload's reserved-property checks.
   
   Preserve the initial version through staged create transactions. Initialize 
SQL and in-memory catalog create builders from the first version update and 
replay subsequent upgrades in order, allowing staged tables to upgrade before 
their create transaction commits.
   
   Add parameterized coverage for supported and invalid versions, reserved 
properties, ordinary and staged creates, and staged V1/V2-to-V3 upgrades. 
Verify the version and properties after reload and in SQL metadata JSON.


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