Closed
Description
Summary
To ensure data ingestion idempotency, databend has already support to deduplicate DML through deduplication label
https://databend.rs/doc/sql-commands/setting-cmds/set-var
Here for cross-language driver integration, we could add a rest api field for the label
Activity
akoshchiy commentedon Jun 14, 2023
@ZhiHanZ Hi! Can I try to fix this? As I understood, we should extend the
HttpQueryRequest
with a new field and then pass it to theQueryContext
settings on the http query creation.ZhiHanZ commentedon Jun 15, 2023
That is perfect, I think we do not need to add additional field on the HttpRequest, we could bring QueryID Header https://github.com/datafuselabs/databend/blob/7dd2a992338f25bf3ce883c8f36f77cd79d5c74f/src/query/service/src/servers/http/v1/http_query_handlers.rs#L41 for deduplication, which is mentioned on previous issue:
#11591.
Expected Behavior:
sample.csv
[-]Feature: support to bring deduplication label on stage attachment api[/-][+]Feature: support deduplication on stage attachment api[/+]akoshchiy commentedon Jun 15, 2023
Does it mean, that we also should use provided
X-DATABEND-QUERY-ID
as query_id instead of generating it?ZhiHanZ commentedon Jun 16, 2023
exactly