c-thiel opened a new issue, #3804:
URL: https://github.com/apache/iceberg-rust/issues/3804

   ### Is your feature request related to a problem or challenge?
   
   Spark writes `"default-namespace": []` for a view created while no namespace 
is current ([capture in 
#331](https://github.com/apache/iceberg-rust/pull/331#issuecomment-2205383749)).
 As [explained in 
#331](https://github.com/apache/iceberg-rust/pull/331#issuecomment-2205517652), 
`[]` is an empty namespace, not a null one, and a valid value: Java has 
[`Namespace.empty()`](https://github.com/apache/iceberg/blob/23a383e8e517272120bd1feb7f192621e9533b05/api/src/main/java/org/apache/iceberg/catalog/Namespace.java#L34-L36),
 and its [view metadata test 
fixture](https://github.com/apache/iceberg/blob/23a383e8e517272120bd1feb7f192621e9533b05/core/src/test/resources/org/apache/iceberg/view/ValidViewMetadata.json#L42)
 uses `[]`.
   
   iceberg-rust reads and writes such view versions through serde, but code 
can't construct the value: `NamespaceIdent::from_vec` refuses an empty vector. 
A catalog that builds view versions has to go through serde to produce it.
   
   ### Describe the solution you'd like
   
   Add `NamespaceIdent::empty()`, mirroring Java's `Namespace.empty()`. 
`from_vec` stays strict, because identifier parsing such as 
`TableIdent::from_strs` relies on that error. That keeps it stricter than 
Java's `Namespace.of()`, on purpose.
   
   ### Willingness to contribute
   
   I can contribute to this feature independently


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