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

   ### Apache Iceberg version
   
   None
   
   ### Please describe the bug 🐞
   
   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   `table.ParseMetadata` accepts table metadata with required identity/location 
fields missing:
   
   - `location` is accepted as missing or null for format versions 1–3.
   - `table-uuid` is accepted as missing or null for format versions 2–3.
   
   The decoded metadata silently exposes default Go values:
   
   - `Metadata.Location()` returns `""`.
   - `Metadata.TableUUID()` returns `uuid.Nil`.
   
   `commonMetadata.validate()` currently validates required schemas, partition 
specs, sort orders, snapshots, and several scalar fields, but does not validate 
`Loc` or `UUID`.
   
   Iceberg requires `location` for v1–v3 metadata. `table-uuid` became required 
in v2. Java's `TableMetadata` enforces the same rules.
   
   ### Expected behavior
   
   Parsing should return an error wrapping `table.ErrInvalidMetadata` when:
   
   - `location` is missing, null, or empty in v1–v3 metadata.
   - `table-uuid` is missing or null in v2/v3 metadata.
   
   Missing `table-uuid` should remain accepted for v1 compatibility.
   


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