From 298f8ea8a295844a46f5a98a839f602432e988f3 Mon Sep 17 00:00:00 2001 From: Misha Shneerson <95778336+mshneerfire@users.noreply.github.com> Date: Thu, 26 Jun 2025 14:21:29 -0700 Subject: [PATCH] Update firebolt-rest-api.md --- docs/developing-with-firebolt/firebolt-rest-api.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/developing-with-firebolt/firebolt-rest-api.md b/docs/developing-with-firebolt/firebolt-rest-api.md index 2729ea0..34c6dcc 100644 --- a/docs/developing-with-firebolt/firebolt-rest-api.md +++ b/docs/developing-with-firebolt/firebolt-rest-api.md @@ -499,3 +499,11 @@ Provide values for placeholders according to the following guidance. * `YOUR_ENGINE_URL` is the value of `engine_url` returned by the command shown in [Get the URL of an engine](#get-the-url-of-an-engine). * `YOUR_QUERY_ID` is the ID of the query you need to cancel. You can get a query ID using the [running queries view](../general-reference/information-schema/running-queries.md). + +> [!WARNING] +> If you see an error `Unknown setting cancel_query_id` consider the following workaround: +```bash +curl --request POST 'https://YOUR_ENGINE_URL/query_id=YOUR_QUERY_ID?database=YOUR_DATABASE_NAME&use_standard_sql=0' \ +--data-raw "KILL QUERY ON CLUSTER sql_cluster WHERE initial_query_id = 'YOUR_QUERY_ID';" \ +--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_VALUE' +```