pvary commented on pull request #1407:
URL: https://github.com/apache/iceberg/pull/1407#issuecomment-694250398


   Here is the "create table" branch: 
https://github.com/pvary/iceberg/commits/create
   How to use: compile, and add the jar to the Hive classpath
   I needed one more patch on Hive side, but 2.2.0 and above Hive should have it
   Commands I have tested with:
   ```
   CREATE EXTERNAL TABLE test_table 
   STORED BY 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' 
   LOCATION 'hdfs://ns1/user/hive/warehouse/test_table'
   TBLPROPERTIES 
('iceberg.mr.table.schema'='{"type":"struct","fields":[{"id":1,"name":"data","required":true,"type":"string"},{"id":2,"name":"id","required":true,"type":"long"}]}',
 'iceberg.mr.write.file.format'='PARQUET')
   
   insert into test_table values(3,"3"),(4,"4");
   insert into test_table select * from test_table;
   insert into test_table select * from test_table order by id;
   ```
   
   @massdosage: Thanks for spending some time testing this out


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