fengjian428 opened a new issue, #6067:
URL: https://github.com/apache/hudi/issues/6067

   
   **Describe the problem you faced**
   
   Refer to the definition on 
https://hudi.apache.org/docs/quick-start-guide#incremental-query, I thought 
incremental query can query a change data history, but after using it, I found 
it only returns one version of FIle ID, should we improve this?
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. create table hudi_cow (
     id int,
     name string,
     price double,
     ts long,
     par string
   ) using hudi
   tblproperties (
     type = 'cow',
     primaryKey = 'id',
     preCombineField = 'ts'
   )
   partitioned by (par)
   location 'basepath';
   2. 
   insert into hudi_cow select 1, 'a1', 20, 1000,'p1';
   insert into hudi_cow select 2, 'b1', 10, 344,'p1';
   insert into hudi_cow select 1, 'a3', 21, 2000,'p1';
   
   3. val hudi_df_begin = spark.read.format("hudi").
     option(DataSourceReadOptions.QUERY_TYPE_OPT_KEY, 
DataSourceReadOptions.QUERY_TYPE_INCREMENTAL_OPT_VAL).
     option(DataSourceReadOptions.BEGIN_INSTANTTIME_OPT_KEY, "0").
     load("basepath/*")
   
   **Expected behavior**
   
   should return all 3 records, but only got two records
   
   **Environment Description**
   
   * Hudi version : master
   
   * Spark version : 3.1
   
   * Hive version :
   
   * Hadoop version :
   
   * Storage (HDFS/S3/GCS..) :
   
   * Running on Docker? (yes/no) : no
   
   
   
   


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