Fokko opened a new issue, #8248:
URL: https://github.com/apache/iceberg/issues/8248

   ### Feature Request / Improvement
   
   Currently, we represent a UUID literal as `UUIDLiteral[Literal[UUID]]`, but 
we want to change this to `UUIDLiteral[Literal[bytes]]`.
   
   Probably currently also tables that are partitioned by UUIDs will fail, 
because the comparison will be between an UUID and bytes. 
   
   What we can do, is create a table using PyIceberg:
   
   ```python
   from pyiceberg.catalog import load_catalog
   from pyiceberg.schema import Schema
   from pyiceberg.types import UUIDType, NestedField
   
   schema = Schema(
       NestedField(
           field_id=1, name="c1", field_type=UUIDType(), required=False
       ),
   )
   
   cat.create_table(
       identifier="default.uuid",
       schema=schema
   )
   ```
   
   And then add some data:
   
   ```sql
   insert into uuid VALUES('102cb62f-e6f8-4eb0-9973-d9b012ff0967');
   ```
   
   Would also be great to have tests around partitioned tables, but it looks 
like that's not possible today: https://github.com/apache/iceberg/issues/8247
   
   cc @JonasJ-ap @HonahX I know that you were looking into this as well.
   
   ### Query engine
   
   None


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