shuai-xu opened a new issue, #4961:
URL: https://github.com/apache/iceberg/issues/4961

   Creata a partitioned iceberg table in flink like this: 
   ```
   CREATE TABLE `mytest`(
     `uid` BIGINT, 
     `deviceId` string, 
     `os` string, 
     `day` string,
     `hour` string)
   PARTITIONED BY ( 
     `day`, 
     `hour`)
   WITH (
       'connector'='iceberg',
       'catalog-type'='hive',
       'catalog-name'='hive_test',
       'catalog-database'='tmp',
       'catalog-table'='mytest',
       'uri'='thrift://localhost:9083',
       'warehouse'='/tmp'
   );
   ```
   then query the table info in hive:
   ```
    CREATE EXTERNAL TABLE `mytest`( 
   |   `uid` bigint,                                     |
   |   `deviceid` string,                               |
   |   `os` string,                                     |
   |   `day` string,                                    |
   |   `hour` string)                                   |
   | ROW FORMAT SERDE                                   |
   |   'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'  |
   | STORED AS INPUTFORMAT                              |
   |   'org.apache.hadoop.mapred.FileInputFormat'       |
   | OUTPUTFORMAT                                       |
   |   'org.apache.hadoop.mapred.FileOutputFormat'      |
   | LOCATION                                           |
   |   'hdfs://testcluster/tmp/mytest' |
   | TBLPROPERTIES (                                    |
   |   'catalog-database'='tmp',                        |
   |   'catalog-name'='hive_test',                      |
   |   'catalog-table'='mytest',  |
   |   'catalog-type'='hive',                           |
   |   'connector'='iceberg',                           |
   |   
'metadata_location'='hdfs://testcluster/tmp/mytest/metadata/00000-c04d43a2-30ad-48cd-9da7-cce0b05a0c1d.metadata.json',
  |
   |   'table_type'='ICEBERG',                          |
   |   'transient_lastDdlTime'='1654500535',            |
   |   'uri'='thrift://localhost:9083',  |
   |   'uuid'='e08b846a-811d-4cb9-969b-fee88a28969d',   |
   |   'warehouse'='/tmp') |
   ```
   The partition info is missing, I checked the code, it seems missing setting 
partition infos in HiveTableOpeartions.


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