From 2d9371a6b4b2f82026f9b4675937f6a31e5afd23 Mon Sep 17 00:00:00 2001 From: Nikhil Suri Date: Tue, 23 Dec 2025 18:19:24 +0530 Subject: [PATCH] added TokenRenewLimit to connector connection string --- CHANGELOG.md | 1 + tableau-databricks/connection-builder.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcdc073..a965898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Single-use refresh token capability for OAuth - Tableau Prep write support to Databricks - Vendor information and license key in manifest +- Default TokenRenewLimit=10 to support long-running queries with automatic token refresh ### Changed - Fixed analytic window functions to use standard SQL functions (MIN, MAX, SUM, AVG, COUNT) diff --git a/tableau-databricks/connection-builder.js b/tableau-databricks/connection-builder.js index 18676ca..5b73209 100644 --- a/tableau-databricks/connection-builder.js +++ b/tableau-databricks/connection-builder.js @@ -91,6 +91,10 @@ limitations under the License. // Allow driver to access UC Volumes for Prep Write to DB params["StagingAllowedLocalPaths"] = connectionHelper.GetTempFilePath(); + // Token renewal limit for long-running queries + // Allows token to be refreshed up to 10 times during query execution + params["TokenRenewLimit"] = "10"; + // Load ODBC connection string extras var odbcConnectStringExtrasMap = {}; const attributeODBCConnectStringExtras = connectionHelper.attributeODBCConnectStringExtras;