You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/04/07 21:22:00 UTC

[GitHub] [iceberg] RussellSpitzer commented on pull request #2061: Improve partition spec builder

RussellSpitzer commented on pull request #2061:
URL: https://github.com/apache/iceberg/pull/2061#issuecomment-815273258


   @jun-he I believe this code also disables using multiple partition fields derived from a particular field even if they are not identity transforms which is allowed. For example
   
   ```SQL
   CREATE TABLE qa_catalog.db.test_table(
           part bignit COMMENT 'part',
           refreshed_at timestamp,
           date date
           )
          USING iceberg
          PARTITIONED BY (entity, years(date), month(date), day(date), part)
    ```
    
    ```
    java.lang.IllegalArgumentException: Cannot add redundant partition: 1001: date_year: year(2) conflicts with 1002: date_month: month(2)
    ```
    


-- 
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:
users@infra.apache.org



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