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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org