RussellSpitzer opened a new issue #2453:
URL: https://github.com/apache/iceberg/issues/2453


   ```java
   sql("ALTER TABLE local.db.alter ADD PARTITION FIELD bucket(16, id)");
   sql("ALTER TABLE local.db.alter ADD PARTITION FIELD truncate(data, 4)");
   sql("ALTER TABLE local.db.alter ADD PARTITION FIELD years(ts)");
   sql("ALTER TABLE local.db.alter ADD PARTITION FIELD bucket(16, category) AS 
shard");
   sql("ALTER TABLE local.db.alter DROP PARTITION FIELD bucket(16, id)");
   sql("ALTER TABLE local.db.alter DROP PARTITION FIELD truncate(data, 4)");
   sql("ALTER TABLE local.db.alter DROP PARTITION FIELD years(ts)");
   sql("ALTER TABLE local.db.alter DROP PARTITION FIELD shard");
   ```
       Builds the following partition Specs
       
   
![image](https://user-images.githubusercontent.com/413025/114247079-de8f3b80-9959-11eb-933f-36da18b679ee.png)
   
     The void transforms are not compatible with our describe code and throws 
an UnsupportedOperationException
     
   Because we describe using this transformer 
https://github.com/apache/iceberg/blob/ab6a5e9ebf2f580fb7be21fb00f1f543726f43eb/api/src/main/java/org/apache/iceberg/transforms/PartitionSpecVisitor.java#L85-L87


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

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