xicm commented on PR #7355:
URL: https://github.com/apache/hudi/pull/7355#issuecomment-1519710563

   steps to reproduce
   1. create table in spark sql
   ```
   create table test_partition (
     id bigint,
     name string,
     ts bigint,
     part string
   ) using hudi
   tblproperties (
     type = 'mor',
     primaryKey = 'id',
     preCombineField = 'ts',
     'hoodie.embed.timeline.server' = 'false',
     'hoodie.datasource.hive_sync.enable'='true',
     'hoodie.datasource.hive_sync.mode'='HMS',
     'hoodie.datasource.hive_sync.table'='test_partition',
     
'hoodie.datasource.hive_sync.metastore.uris'='thrift://host-10-19-37-172:9083',
     'hoodie.datasource.hive_sync.partition_fields'='part'
   )
   partitioned by (part)
   location '/tmp/hoodie/test_partition';
   ```
   2. insert a record
   ```
   insert into test_partition partition (part)
   select 1 as id, 'a1' as name, 1000 as ts, '2021-12-09' as part;
   ```
   3. query in hive
   ```
   select * from test_partition_ro where part = '2021-12-09';
   ```


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

Reply via email to