dmgcodevil commented on issue #6587:
URL: https://github.com/apache/iceberg/issues/6587#issuecomment-1386300159

   @RussellSpitzer I forgot that we also partition by another field using 
`bucket` transform. original spec:
   
   ```json
     "partition-spec" : [ {
       "name" : "timestamp1_day",
       "transform" : "day",
       "source-id" : 2,
       "field-id" : 1000
     }, {
       "name" : "id_bucket",
       "transform" : "bucket[5]",
       "source-id" : 1,
       "field-id" : 1001
     } ],
   ```
   
   Folder structure:
   
   ```
   /timestamp1_day=2023-01-01/id_bucket=1/
   ```
   
   
   After update:
   
   Spec:
   
   
   ```json
     "partition-spec" : [ {
       "name" : "timestamp1_day",
       "transform" : "void",
       "source-id" : 2,
       "field-id" : 1000
     }, {
       "name" : "id_bucket",
       "transform" : "bucket[5]",
       "source-id" : 1,
       "field-id" : 1001
     }, {
       "name" : "timestamp2_day",
       "transform" : "day",
       "source-id" : 3,
       "field-id" : 1002
     } ]
   ```
   
   Folder structure:
   
   ```
   /timestamp1_day=null/id_bucket=1/timestamp2_day=2023-01-03/
   ```
   
   The folder structure is different from the original, i.e.: `id_bucket`  
comes before `timestamp2_day`. Is it expected?
   
   I couldn't reproduce `Wrong class, java.lang.Long, for object: 19367`, I'll 
keep trying.
   
   I updated my 
[example](https://bbgithub.dev.bloomberg.com/gist/rpliashkou/40f63ae0c2db036cfb2840185d916296)


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to