snowflake-connector-nodejs icon indicating copy to clipboard operation
snowflake-connector-nodejs copied to clipboard

SNOW-1858340: Allow passing in `requestId` as idempotency key

Open albertyfwu opened this issue 2 years ago • 0 comments

Both the V1 and V2 Snowflake APIs support passing in a client-generated requestId as an idempotency key to avoid duplicate execution of statements.

V2: https://docs.snowflake.com/en/developer-guide/sql-api/submitting-requests.html#label-sql-api-generating-request-id

In the existing code, the nodejs client generates a random UUID.

Could we expose this requestId for the client to set too?

albertyfwu avatar Jul 21 '22 20:07 albertyfwu