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

   **_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**
   
   Spark SQL creates a mor table, and writing data will not deduplicate
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   **1.** 
   create table spark_mor_no_pre_t1 (
     id int,
     name string
   ) using hudi
   options (
   type = 'mor',
   primaryKey = 'id'
   );
   
   **2.**
   insert into spark_mor_no_pre_t1 values(1,'a'),(1,'b');
   
   **3.**
   select id,name from spark_mor_no_pre_t1
   1       a
   1       b
   
   **4.**
   insert into spark_mor_no_pre_t1 values(2,'a'),(2,'b');
   
   **5.**
   select id,name from spark_mor_no_pre_t1
   1       a
   1       b
   2       b
   
   **Expected behavior**
   **3.**
   select id,name from spark_mor_no_pre_t1
   1       b
   
   **Environment Description**
   
   * Hudi version : 0.13.0
   
   * Spark version :3.2.4
   
   * Hive version :3.1.2
   
   * Hadoop version :3.3.5
   
   * Storage (HDFS/S3/GCS..) :HDFS
   
   * Running on Docker? (yes/no) :no
   
   
   **Additional context**
   
   
   
   **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