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

   ### Apache Iceberg version
   
   1.3.0 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   I am integrating iceberg with Apache spark , I tried to create the table 
test partitioned by hour(EndTime) ,
   
   ```
   create table local.db.test (
   MSISDN string,
   START_TIME timestamp,
   END_TIME timestamp
   )
   USING iceberg PARTITIONED BY (hours(END_TIME)); 
   ```
   
   then I tried to call a procedure to import the data from parquet files ,
   
   ```
   CALL local.system.add_files(
     table => 'local.db.test',
     source_table => '`parquet`.`path/to/parquet/files`'
   );
   ```
   it supposed to work as in the documentation , but got this exception , 
   
   `java.lang.IllegalArgumentException: Cannot add data files to target table 
local.db.test because that table is partitioned and contains 
non-identitypartition transforms which will not be compatible. Found 
non-identity fields [1000: END_TIME_hour: hour(3)]`
   


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