You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/12/09 10:25:48 UTC

[GitHub] [incubator-doris] JNSimba commented on pull request #7210: [feat](flink-connector) add BATCH DELETE support

JNSimba commented on pull request #7210:
URL: https://github.com/apache/incubator-doris/pull/7210#issuecomment-989718341


   > 3. Batch delete: `merge_type: DELETE` is a good method for delete. If there are two records in a batch : one is delete and the other is append, `merge_type: MERGE` can solve ,  maybe is there a better method?
   
   @aihai 
   Hello, I have an idea. You don't need to add `delete/merge` in the header. You can directly determine the delete event during streamload. Add `__DORIS_DELETE_SIGN__ =1` to the data and column to achieve the delete effect.
   
   for example:
   `curl -v --location-trusted -u root:123456 -H "format: json" -H "strip_outer_array: true" -H "jsonpaths: [\"$.id\", \"$.name\",\ "$.__DORIS_DELETE_SIGN__\"]" -H "columns: id,name,__DORIS_DELETE_SIGN__" -T example.json http://127.0.0.1:8030/api/test/test_delete/_stream_load`
   
   


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org