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

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
   A clear and concise description of the problem.
   
   ## **To Reproduce**
   
   Steps to reproduce the behavior:
   ### Create a hoodie table and insert some data
   Here's the flinkSQL I used:
   create table mor_cdc_writer(
     uuid VARCHAR(20) PRIMARY KEY NOT ENFORCED,
     name VARCHAR(10),
     age INT,
     ts TIMESTAMP(3),
     `partition` VARCHAR(20)
   ) PARTITIONED BY (`partition`) WITH (
     'connector' = 'hudi',
     'path' = '/tmp/hudi_test/op/mor_cdc'',
     'table.type' = 'MERGE_ON_READ',
     -- cdc
     'changelog.enabled' = 'true',
     'cdc.enabled' = 'true'
   );
   
   -- insert data using values
   INSERT INTO mor_cdc_writer VALUES
     ('id1','Danny',23,TIMESTAMP '1970-01-01 00:00:01','par1'),
     ('id2','Stephen',33,TIMESTAMP '1970-01-01 00:00:02','par1'),
     ('id3','Julian',53,TIMESTAMP '1970-01-01 00:00:03','par2'),
     ('id4','Fabian',31,TIMESTAMP '1970-01-01 00:00:04','par2'),
     ('id5','Sophia',18,TIMESTAMP '1970-01-01 00:00:05','par3'),
     ('id6','Emma',20,TIMESTAMP '1970-01-01 00:00:06','par3'),
     ('id7','Bob',44,TIMESTAMP '1970-01-01 00:00:07','par4'),
     ('id8','Han',56,TIMESTAMP '1970-01-01 00:00:08','par4');
   
     INSERT INTO mor_cdc_writer VALUES
     ('id1','Danny',23,TIMESTAMP '1970-01-01 00:00:01','par1'),
     ('id1','Danny',24,TIMESTAMP '1970-01-01 00:00:01','par1'),
     ('id1','Danny',25,TIMESTAMP '1970-01-01 00:00:01','par1');`
   
   ### Read data from the table
   create table mor_cdc_reader(
     uuid VARCHAR(20) PRIMARY KEY NOT ENFORCED,
     name VARCHAR(10),
     age INT,
     ts TIMESTAMP(3),
     `partition`VARCHAR(20)
   ) PARTITIONED BY (`partition`) WITH (
     'connector' = 'hudi',
     'path' = '/tmp/hudi_test/op/mor_cdc',
     'table.type' = 'MERGE_ON_READ',
     -- cdc
     'changelog.enabled' = 'true',
     'cdc.enabled' = 'true',
     -- reader
     'read.start-commit' = '20230517160710839',
     'read.end-commit' = '20230517160741523',
     'hoodie.datasource.query.type' = 'incremental'
   );
   select * from mor_cdc_reader;
   
   <img width="1679" alt="image" 
src="https://github.com/apache/hudi/assets/46181516/e0b6b8e8-3bef-4e50-b7c2-93b7e111d696";>
   
   
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.13.0
   
   * Flink version : 1.16
   
   * Spark version :
   
   * Hive version :
   
   * Hadoop version :
   
   * Storage (HDFS/S3/GCS..) :
   
   * Running on Docker? (yes/no) :
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   


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