ad1happy2go commented on issue #10096:
URL: https://github.com/apache/hudi/issues/10096#issuecomment-1814126665

   @zyclove I tried the same scenario but it was working fine for me and 
queries were running fine. Can you try the same in your setup. 
   
   ```
   CREATE TABLE hudi_table (
       ts BIGINT,
       uuid STRING,
       rider STRING,
       driver STRING,
       fare DECIMAL(10,4),
       city STRING
   ) USING HUDI
   tblproperties (
   type = 'mor', primaryKey = 'uuid', preCombineField = 'ts'
   )
   PARTITIONED BY (city);
   
   INSERT INTO hudi_table
   VALUES
   
(1695159649087,'334e26e9-8355-45cc-97c6-c31daf0df330','rider-A','driver-K',100001.0001,'san_francisco'),
   
(1695091554788,'e96c4396-3fad-413a-a942-4cb36106d721','rider-C','driver-M',100001.0001
 ,'san_francisco');
   
   INSERT INTO hudi_table
   VALUES
   
(1695159649089,'334e26e9-8355-45cc-97c6-c31daf0df330','rider-A','driver-K',100001.0001,'san_francisco'),
   
(1695091554790,'e96c4396-3fad-413a-a942-4cb36106d721','rider-C','driver-M',100001.0001
 ,'san_francisco');
   
   INSERT INTO hudi_table
   VALUES
   
(1695159649091,'334e26e9-8355-45cc-97c6-c31daf0df330','rider-A','driver-K',100001.0001,'san_francisco'),
   
(1695091554790,'e96c4396-3fad-413a-a942-4cb36106d721','rider-C','driver-M',100001.0001
 ,'san_francisco');
   
   SELECT count(1) FROM
   hudi_table_changes('hudi_table_rt', 'latest_state', '20231114033500000', 
'20231116152700000');
   SELECT count(1) FROM
   hudi_table_changes('hudi_table_rt', 'latest_state', '20231114033500000', 
'20231116152700000');
   SELECT count(1) FROM
   hudi_table_changes('hudi_table_rt', 'latest_state', '20231114033500000', 
'20231116152700000');
   ```


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