Skip to content

3.1.0

Latest

Choose a tag to compare

@peco-release-bot peco-release-bot released this 23 Nov 20:57
· 8 commits to main since this release
abedbbf
  • Upgrade to kernel 1.5.0: fix CloudFetch pagination, ordering and cancellation, paged inline Arrow results with CloudFetch disabled, and affected-row counts.
  • Kernel: release statement/connection resources promptly on close, avoid duplicate OAuth requests after failure and redundant status/telemetry work, fail fast on TLS certificate errors, and redact CloudFetch URL query strings from errors/logs. Includes Arrow and Quinn dependency security updates.
  • Add rowMode: 'array' to retain columns with duplicate names; object mode now warns about duplicates.
  • Add Symbol.asyncDispose and the asyncDisposable() helper for clients, sessions and operations.
  • Add https: false for plain HTTP connections over trusted local/private links.
  • Speed up Arrow row conversion and large-result fetching by reducing copying, intermediate decimal strings and batch-processing overhead.
  • Thrift OAuth now honors oauthScopes for M2M (instead of all-apis) and U2M (instead of sql offline_access). Persisted tokens with different recorded scopes are replaced; U2M requires a new browser login. Token federation now honors proxy/TLS options.
  • Proxy TLS compatibility: honor custom CAs, mTLS and certificate verification on Thrift proxy connections, including HTTPS proxies. Disable verification explicitly with checkServerCertificate: false; NODE_TLS_REJECT_UNAUTHORIZED=0 no longer disables it.
  • Send customHeaders on all Thrift requests; reject invalid headers and prevent overrides of driver-managed headers.
  • Bound Thrift CloudFetch downloads and retry backoff by retriesTimeout (default 15 minutes). Abort timed-out downloads with RetryError / TIMEOUT_EXCEEDED; retry errors now include the last HTTP/network failure.
  • Honor useCloudFetch: false and cloudFetchConcurrentDownloads in kernel sessions. Concurrency defaults to 16, requires a positive safe integer, and can be overridden by explicit chunk settings.
  • Retry Thrift ExecuteStatement connection failures only when the request has not been sent, within the existing retry budget.
  • Preserve typed kernel polling/fetch errors and expose server details/kernel causes. Closing finished operations is now best effort; closing unfinished operations still reports failures.
  • Preserve DECIMAL parameter precision/scale, including exponent forms and large Int64 values; reject invalid or non-scalar parameters with ParameterError.
  • Kernel: report untyped NULL columns as STRING and reject getPrimaryKeys() calls without a tableName with ParameterError.
  • Write databricks-sql-nodejs.log when DBSQLLogger's filepath is a directory; fall back to console with DBSQL_LOG_FILE_UNAVAILABLE if file logging fails.
  • Limit error telemetry to error class and SQLSTATE; add result-delivery and compression metadata to statement telemetry.
  • Thrift compatibility: upgrade to 0.25 to restore CommonJS/Jest loading. Callback-less thrift.TCLIService client calls and promise-returning processor handlers now use native Promises. Replace Q-only methods such as .fail() / .fin() with .catch() / .finally(), and handle rejections, which now follow Node's default crash behavior. The Promise migration leaves DBSQLClient unchanged.