Yukang-Lian opened a new pull request, #35917:
URL: https://github.com/apache/doris/pull/35917

   ## Proposed changes
   
   close #34551 
   
   Problem: As shown in the issue above, if a key deleted by a delete statement 
is written to by updating only certain columns, the data will not display 
correctly.
   
   Reason: The delete statement deletes the data by writing a delete predicate, 
which is stored in the rowset meta and applied during data retrieval to filter 
the data. However, partial column updates do not consider the effect of the 
delete predicate when reading the original data. The imported key should be 
considered as a new key (since it has already been deleted), but it is actually 
treated as an old key. Therefore, only some columns are updated, leading to 
incorrect results.
   
   Solution: Consider the delete predicate during partial column updates, but 
this method will result in reading more columns, as shown in #35766. Thus, in 
this PR, we change the delete operation in the mow table from writing a delete 
predicate to writing a delete sign, which effectively resolves the issue.
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to