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

   ### Query engine
   
   Spark:3.2.1
   Iceberg:1.1.0
   
   ### Question
   
   When I create a table use the example sql:
   `CREATE TABLE prod.db.sample (
       id bigint,
       data string,
       category string,
       ts timestamp)
   USING iceberg
   PARTITIONED BY (years(ts), days(ts)) `
   Then it will throw exception: "Cannot add redundant partition field"
   But when I create table use follow sql:
   `CREATE TABLE prod.db.sample (
       id bigint,
       data string,
       category string,
       ts timestamp)
   USING iceberg`
   I found that when I use the following sql in order after creating the table 
it will success.
   `ALTER TABLE prod.db.sample ADD PARTITION FIELD years(ts)`
   `ALTER TABLE prod.db.sample ADD PARTITION FIELD days(ts)`
   I want to know do we need to check Redundant Added Partitions as we did when 
we created the table? Maybe It need use together to check Redunant?


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