qphien commented on pull request #1495:
URL: https://github.com/apache/iceberg/pull/1495#issuecomment-699936582


   I think it is necessary to add a converter to transform Hive DDL schema to 
iceberg schema instead of specifying iceberg schema in TBLPROPERTIES. Maybe we 
can use 
   ```xml
   // Managed Table
   CREATE TABLE icebergTable (id int, day string)
   STORED BY 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler'
   TBLPROPERTIES('iceberg.mr.table.partition.spec'='day:day')
   
   // External Table
   CREATE TABLE icebergTable (id int, day string)
   STORED BY 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler'
   LOCATION 'hdfs://path/to/table'
   TBLPROPERTIES('iceberg.mr.table.partition.spec'='id:identity')
   ```
   to create managed/external table, `iceberg.mr.table.partition.spec` can be 
used to specify partition name and transform type.
   


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