@databricks/sql 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Process-wide cache for tracking Reyden (Real-Time SQL) warehouses.
3
+ *
4
+ * When a Thrift OpenSession fails with SQLSTATE KP001, the driver falls back
5
+ * to the SEA (Statement Execution API) backend. This cache avoids retrying
6
+ * the same failed Thrift path on subsequent connections by recording which
7
+ * warehouses are known to require SEA.
8
+ *
9
+ * The cache is keyed by (host_lowercased, warehouse_id) to handle multi-tenant
10
+ * safety — the same warehouse ID on different hosts may have different support.
11
+ *
12
+ * TTL is ~6 hours to allow the server side to update warehouse routing without
13
+ * requiring a process restart. Expired entries are opportunistically evicted on
14
+ * access (no background GC thread — Node is single-threaded).
15
+ */
16
+ declare class ReydenWarehouseCache {
17
+ private static instance?;
18
+ private cache;
19
+ private constructor();
20
+ static getInstance(): ReydenWarehouseCache;
21
+ /**
22
+ * Constructs a cache key from host and warehouse ID.
23
+ * Host is lowercased for case-insensitive comparison.
24
+ */
25
+ private getKey;
26
+ /**
27
+ * Check if an entry is expired based on TTL.
28
+ */
29
+ private isExpired;
30
+ /**
31
+ * Checks if a warehouse is known to be Reyden (requiring SEA fallback).
32
+ *
33
+ * Membership is presence-based: the cache only ever records known-Reyden
34
+ * warehouses (via markReyden), so an unexpired entry means Reyden and the
35
+ * absence of one means "not known" — there is no negative-cache state.
36
+ * Returns false when the warehouse is not in the cache or the entry expired.
37
+ */
38
+ isKnownReyden(host: string, warehouseId: string): boolean;
39
+ /**
40
+ * Mark a warehouse as being Reyden (KP001 rejection detected).
41
+ */
42
+ markReyden(host: string, warehouseId: string): void;
43
+ /**
44
+ * Clears the cache. Intended for testing only.
45
+ *
46
+ * @internal
47
+ */
48
+ clear(): void;
49
+ /**
50
+ * Returns the current cache size. Intended for testing/observability.
51
+ *
52
+ * @internal
53
+ */
54
+ size(): number;
55
+ }
56
+ declare const _default: ReydenWarehouseCache;
57
+ export default _default;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /**
3
+ * Process-wide cache for tracking Reyden (Real-Time SQL) warehouses.
4
+ *
5
+ * When a Thrift OpenSession fails with SQLSTATE KP001, the driver falls back
6
+ * to the SEA (Statement Execution API) backend. This cache avoids retrying
7
+ * the same failed Thrift path on subsequent connections by recording which
8
+ * warehouses are known to require SEA.
9
+ *
10
+ * The cache is keyed by (host_lowercased, warehouse_id) to handle multi-tenant
11
+ * safety — the same warehouse ID on different hosts may have different support.
12
+ *
13
+ * TTL is ~6 hours to allow the server side to update warehouse routing without
14
+ * requiring a process restart. Expired entries are opportunistically evicted on
15
+ * access (no background GC thread — Node is single-threaded).
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const TTL_MS = 6 * 60 * 60 * 1000; // 6 hours
19
+ class ReydenWarehouseCache {
20
+ // Singleton: constructor is private to enforce getInstance() usage
21
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
22
+ constructor() {
23
+ this.cache = new Map();
24
+ }
25
+ static getInstance() {
26
+ if (!ReydenWarehouseCache.instance) {
27
+ ReydenWarehouseCache.instance = new ReydenWarehouseCache();
28
+ }
29
+ return ReydenWarehouseCache.instance;
30
+ }
31
+ /**
32
+ * Constructs a cache key from host and warehouse ID.
33
+ * Host is lowercased for case-insensitive comparison.
34
+ */
35
+ getKey(host, warehouseId) {
36
+ return `${host.toLowerCase()}:${warehouseId}`;
37
+ }
38
+ /**
39
+ * Check if an entry is expired based on TTL.
40
+ */
41
+ isExpired(entry) {
42
+ return Date.now() - entry.timestamp > TTL_MS;
43
+ }
44
+ /**
45
+ * Checks if a warehouse is known to be Reyden (requiring SEA fallback).
46
+ *
47
+ * Membership is presence-based: the cache only ever records known-Reyden
48
+ * warehouses (via markReyden), so an unexpired entry means Reyden and the
49
+ * absence of one means "not known" — there is no negative-cache state.
50
+ * Returns false when the warehouse is not in the cache or the entry expired.
51
+ */
52
+ isKnownReyden(host, warehouseId) {
53
+ const key = this.getKey(host, warehouseId);
54
+ const entry = this.cache.get(key);
55
+ if (!entry) {
56
+ return false;
57
+ }
58
+ // Opportunistically evict expired entries on access
59
+ if (this.isExpired(entry)) {
60
+ this.cache.delete(key);
61
+ return false;
62
+ }
63
+ return true;
64
+ }
65
+ /**
66
+ * Mark a warehouse as being Reyden (KP001 rejection detected).
67
+ */
68
+ markReyden(host, warehouseId) {
69
+ const now = Date.now();
70
+ // Opportunistic sweep: markReyden runs only on an actual Thrift rejection
71
+ // (rare), so purging every expired entry here is near-free and bounds the
72
+ // cache to warehouses seen within the TTL window. The per-key lazy eviction
73
+ // in isKnownReyden only reclaims entries that are looked up again, so an
74
+ // entry that is never queried after marking would otherwise persist for the
75
+ // life of the process.
76
+ for (const [existingKey, entry] of this.cache) {
77
+ if (now - entry.timestamp > TTL_MS) {
78
+ this.cache.delete(existingKey);
79
+ }
80
+ }
81
+ this.cache.set(this.getKey(host, warehouseId), { timestamp: now });
82
+ }
83
+ /**
84
+ * Clears the cache. Intended for testing only.
85
+ *
86
+ * @internal
87
+ */
88
+ clear() {
89
+ this.cache.clear();
90
+ }
91
+ /**
92
+ * Returns the current cache size. Intended for testing/observability.
93
+ *
94
+ * @internal
95
+ */
96
+ size() {
97
+ return this.cache.size;
98
+ }
99
+ }
100
+ exports.default = ReydenWarehouseCache.getInstance();
101
+ //# sourceMappingURL=ReydenWarehouseCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReydenWarehouseCache.js","sourceRoot":"","sources":["../lib/ReydenWarehouseCache.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,UAAU;AAM7C,MAAM,oBAAoB;IAKxB,mEAAmE;IACnE,gEAAgE;IAChE;QAJQ,UAAK,GAA4B,IAAI,GAAG,EAAE,CAAC;IAI5B,CAAC;IAEjB,MAA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AG,KAAK,CAAC,SAAS,GAAG,MAAM,EAAE,CAAC;gBACnC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACI,KAAK;QACV,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACI,IAAI;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;CACF;AAED,kBAAe,oBAAoB,CAAC,WAAW,EAAE,CAAC"}
@@ -3,6 +3,7 @@ export default class StatusError implements Error {
3
3
  name: string;
4
4
  message: string;
5
5
  code: number;
6
+ sqlState?: string;
6
7
  stack?: string;
7
8
  constructor(status: TStatus);
8
9
  }
@@ -5,6 +5,7 @@ class StatusError {
5
5
  this.name = 'Status Error';
6
6
  this.message = status.errorMessage || '';
7
7
  this.code = status.errorCode || -1;
8
+ this.sqlState = status.sqlState;
8
9
  if (Array.isArray(status.infoMessages)) {
9
10
  this.stack = status.infoMessages.join('\n');
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StatusError.js","sourceRoot":"","sources":["../../lib/errors/StatusError.ts"],"names":[],"mappings":";;AAEA,MAAqB,WAAW;IAS9B,YAAY,MAAe;QACzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;QAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AAlBD,8BAkBC"}
1
+ {"version":3,"file":"StatusError.js","sourceRoot":"","sources":["../../lib/errors/StatusError.ts"],"names":[],"mappings":";;AAEA,MAAqB,WAAW;IAW9B,YAAY,MAAe;QACzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEhC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AArBD,8BAqBC"}
@@ -1,7 +1,8 @@
1
1
  import IBackend from '../contracts/IBackend';
2
2
  import ISessionBackend from '../contracts/ISessionBackend';
3
3
  import IClientContext from '../contracts/IClientContext';
4
- import { OpenSessionRequest } from '../contracts/IDBSQLClient';
4
+ import { ConnectionOptions, OpenSessionRequest } from '../contracts/IDBSQLClient';
5
+ import KernelBackend from '../kernel/KernelBackend';
5
6
  interface ThriftBackendOptions {
6
7
  context: IClientContext;
7
8
  onConnectionEvent: (event: 'error' | 'reconnecting' | 'close' | 'timeout', payload?: unknown) => void;
@@ -9,9 +10,28 @@ interface ThriftBackendOptions {
9
10
  export default class ThriftBackend implements IBackend {
10
11
  private readonly context;
11
12
  private readonly onConnectionEvent;
13
+ private connectionOptions?;
14
+ private fallbackKernelBackendConnect?;
12
15
  constructor({ context, onConnectionEvent }: ThriftBackendOptions);
13
- connect(): Promise<void>;
16
+ /**
17
+ * Extracts warehouse/endpoint ID from the HTTP path.
18
+ * Matches patterns like `/sql/1.0/warehouses/<id>` or `/sql/1.0/endpoints/<id>`.
19
+ * Returns undefined if no ID can be extracted.
20
+ */
21
+ private static extractWarehouseId;
22
+ connect(options: ConnectionOptions): Promise<void>;
14
23
  openSession(request: OpenSessionRequest): Promise<ISessionBackend>;
24
+ /**
25
+ * Opens a session using the Thrift backend.
26
+ */
27
+ private openSessionWithThrift;
28
+ /**
29
+ * Opens a session using the KernelBackend (SEA).
30
+ * Called as a fallback when Thrift returns KP001 (Reyden rejection).
31
+ */
32
+ private openSessionWithKernelBackend;
33
+ private getFallbackKernelBackend;
34
+ protected createKernelBackend(): KernelBackend;
15
35
  close(): Promise<void>;
16
36
  }
17
37
  export {};
@@ -8,6 +8,10 @@ const TCLIService_types_1 = require("../../thrift/TCLIService_types");
8
8
  const Status_1 = __importDefault(require("../dto/Status"));
9
9
  const utils_1 = require("../utils");
10
10
  const ThriftSessionBackend_1 = __importDefault(require("./ThriftSessionBackend"));
11
+ const StatusError_1 = __importDefault(require("../errors/StatusError"));
12
+ const ReydenWarehouseCache_1 = __importDefault(require("../ReydenWarehouseCache"));
13
+ const KernelBackend_1 = __importDefault(require("../kernel/KernelBackend"));
14
+ const IDBSQLLogger_1 = require("../contracts/IDBSQLLogger");
11
15
  function getInitialNamespaceOptions(catalogName, schemaName) {
12
16
  if (!catalogName && !schemaName) {
13
17
  return {};
@@ -24,7 +28,25 @@ class ThriftBackend {
24
28
  this.context = context;
25
29
  this.onConnectionEvent = onConnectionEvent;
26
30
  }
27
- async connect() {
31
+ /**
32
+ * Extracts warehouse/endpoint ID from the HTTP path.
33
+ * Matches patterns like `/sql/1.0/warehouses/<id>` or `/sql/1.0/endpoints/<id>`.
34
+ * Returns undefined if no ID can be extracted.
35
+ */
36
+ static extractWarehouseId(httpPath) {
37
+ if (!httpPath) {
38
+ return undefined;
39
+ }
40
+ // Stop at query string
41
+ const pathOnly = httpPath.split('?')[0];
42
+ // Match `/warehouses/<id>` or `/endpoints/<id>`
43
+ // Stop at `/` or end of string
44
+ const match = pathOnly.match(/\/(warehouses|endpoints)\/([^/]+)/);
45
+ return match ? match[2] : undefined;
46
+ }
47
+ async connect(options) {
48
+ // Store connection options for warehouse ID extraction in openSession
49
+ this.connectionOptions = options;
28
50
  // The connection provider is owned by DBSQLClient (it implements IClientContext).
29
51
  // We only need to wire the EventEmitter listeners through this backend.
30
52
  const connectionProvider = await this.context.getConnectionProvider();
@@ -43,6 +65,57 @@ class ThriftBackend {
43
65
  });
44
66
  }
45
67
  async openSession(request) {
68
+ var _a, _b;
69
+ const logger = this.context.getLogger();
70
+ // Extract warehouse ID for cache lookups
71
+ const warehouseId = ThriftBackend.extractWarehouseId((_a = this.connectionOptions) === null || _a === void 0 ? void 0 : _a.path);
72
+ const host = (_b = this.connectionOptions) === null || _b === void 0 ? void 0 : _b.host;
73
+ // Check if this warehouse is known to be Reyden (requires SEA backend)
74
+ if (host && warehouseId && ReydenWarehouseCache_1.default.isKnownReyden(host, warehouseId)) {
75
+ logger.log(IDBSQLLogger_1.LogLevel.debug, `Reyden: warehouse ${warehouseId} is known to require SEA fallback; skipping Thrift`);
76
+ return this.openSessionWithKernelBackend(request);
77
+ }
78
+ // Try Thrift first (default path).
79
+ try {
80
+ return await this.openSessionWithThrift(request);
81
+ }
82
+ catch (error) {
83
+ // Only a Reyden KP001 rejection triggers fallback. Every other error
84
+ // propagates unchanged — note StatusError is NOT an Error subclass
85
+ // (it only `implements Error`), so it must be re-thrown as-is rather
86
+ // than normalized, or its sqlState/message would be lost.
87
+ if (error instanceof StatusError_1.default && error.sqlState === 'KP001') {
88
+ logger.log(IDBSQLLogger_1.LogLevel.debug, `Reyden: detected KP001 on warehouse ${warehouseId}; falling back to SEA backend`);
89
+ // Mark this warehouse as Reyden for future connections.
90
+ if (host && warehouseId) {
91
+ ReydenWarehouseCache_1.default.markReyden(host, warehouseId);
92
+ }
93
+ // Fall back to the kernel (SEA) backend exactly once. If it also fails,
94
+ // surface the kernel error but keep the original Thrift rejection as its
95
+ // cause for diagnosis.
96
+ try {
97
+ return await this.openSessionWithKernelBackend(request);
98
+ }
99
+ catch (kernelError) {
100
+ // Preserve the Thrift KP001 as the kernel error's cause, but don't clobber a cause
101
+ // the kernel error may already carry.
102
+ if (kernelError &&
103
+ typeof kernelError === 'object' &&
104
+ kernelError.cause === undefined) {
105
+ kernelError.cause = error;
106
+ }
107
+ logger.log(IDBSQLLogger_1.LogLevel.error, 'Reyden: both Thrift (KP001) and SEA fallback failed');
108
+ throw kernelError;
109
+ }
110
+ }
111
+ // Not a Reyden rejection — surface the original error unchanged.
112
+ throw error;
113
+ }
114
+ }
115
+ /**
116
+ * Opens a session using the Thrift backend.
117
+ */
118
+ async openSessionWithThrift(request) {
46
119
  const driver = await this.context.getDriver();
47
120
  const config = this.context.getConfig();
48
121
  const configuration = request.configuration ? { ...request.configuration } : {};
@@ -71,9 +144,54 @@ class ThriftBackend {
71
144
  serverProtocolVersion: response.serverProtocolVersion,
72
145
  });
73
146
  }
147
+ /**
148
+ * Opens a session using the KernelBackend (SEA).
149
+ * Called as a fallback when Thrift returns KP001 (Reyden rejection).
150
+ */
151
+ async openSessionWithKernelBackend(request) {
152
+ if (!this.connectionOptions) {
153
+ throw new Error('KernelBackend fallback: connection options not available');
154
+ }
155
+ const logger = this.context.getLogger();
156
+ logger.log(IDBSQLLogger_1.LogLevel.debug, 'Reyden: opening session via KernelBackend (SEA)');
157
+ const kernelBackend = await this.getFallbackKernelBackend(this.connectionOptions);
158
+ return kernelBackend.openSession(request);
159
+ }
160
+ // Lazily creates and connects the single fallback KernelBackend, reused across every
161
+ // fallback session so repeated opens don't accumulate backends / log-bridge listeners.
162
+ // On a connect failure the memoized attempt is cleared so a later open can retry.
163
+ getFallbackKernelBackend(connectionOptions) {
164
+ if (!this.fallbackKernelBackendConnect) {
165
+ this.fallbackKernelBackendConnect = (async () => {
166
+ const kernelBackend = this.createKernelBackend();
167
+ await kernelBackend.connect(connectionOptions);
168
+ return kernelBackend;
169
+ })().catch((error) => {
170
+ this.fallbackKernelBackendConnect = undefined;
171
+ throw error;
172
+ });
173
+ }
174
+ return this.fallbackKernelBackendConnect;
175
+ }
176
+ // Seam so tests can inject a fake KernelBackend without the native binding.
177
+ createKernelBackend() {
178
+ return new KernelBackend_1.default({ context: this.context });
179
+ }
74
180
  async close() {
75
- // DBSQLClient owns the connection lifecycle and clears its own state
181
+ // Release the process-global log-bridge listener held by the Reyden-fallback KernelBackend.
182
+ // DBSQLClient owns the rest of the connection lifecycle and clears its own state
76
183
  // (connectionProvider, authProvider, thrift client) after this returns.
184
+ //
185
+ // Await the in-flight connect rather than a resolved-backend field: the connect
186
+ // installs the listener only once it resolves, so a close() racing an unresolved
187
+ // fallback connect must still wait for it and release the backend it produces.
188
+ // Clear the field first so the state is consistent even if the awaited close() throws.
189
+ const pendingConnect = this.fallbackKernelBackendConnect;
190
+ this.fallbackKernelBackendConnect = undefined;
191
+ if (pendingConnect) {
192
+ const kernelBackend = await pendingConnect.catch(() => undefined);
193
+ await (kernelBackend === null || kernelBackend === void 0 ? void 0 : kernelBackend.close());
194
+ }
77
195
  }
78
196
  }
79
197
  exports.default = ThriftBackend;
@@ -1 +1 @@
1
- {"version":3,"file":"ThriftBackend.js","sourceRoot":"","sources":["../../lib/thrift-backend/ThriftBackend.ts"],"names":[],"mappings":";;;;;AAAA,4DAA+B;AAK/B,sEAAkE;AAClE,2DAAmC;AACnC,oCAA8D;AAC9D,kFAA0D;AAE1D,SAAS,0BAA0B,CAAC,WAAoB,EAAE,UAAmB;IAC3E,IAAI,CAAC,WAAW,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,gBAAgB,EAAE;YAChB,WAAW;YACX,UAAU;SACX;KACF,CAAC;AACJ,CAAC;AAOD,MAAqB,aAAa;IAKhC,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAwB;QAC9D,IAAI,CAAC,OAAO,GAAG,OAAO,C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,uFAAuF;IACvF,kFAAkF;IAC1E,wBAAwB,CAAC,iBAAoC;QACnE,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE,CAAC;YACvC,IAAI,CAAC,4BAA4B,GAAG,CAAC,KAAK,IAAI,EAAE;gBAC9C,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;gBACjD,MAAM,aAAa,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;gBAC/C,OAAO,aAAa,CAAC;YACvB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACnB,IAAI,CAAC,4BAA4B,GAAG,SAAS,CAAC;gBAC9C,MAAM,KAAK,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,4BAA4B,CAAC;IAC3C,CAAC;IAED,4EAA4E;IAClE,mBAAmB;QAC3B,OAAO,IAAI,uBAAa,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,4FAA4F;QAC5F,iFAAiF;QACjF,wEAAwE;QACxE,EAAE;QACF,gFAAgF;QAChF,iFAAiF;QACjF,+EAA+E;QAC/E,uFAAuF;QACvF,MAAM,cAAc,GAAG,IAAI,CAAC,4BAA4B,CAAC;QACzD,IAAI,CAAC,4BAA4B,GAAG,SAAS,CAAC;QAC9C,IAAI,cAAc,EAAE,CAAC;YACnB,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAClE,MAAM,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,KAAK,EAAE,CAAA,CAAC;QAC/B,CAAC;IACH,CAAC;CACF;AAlND,gCAkNC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.1.0";
1
+ declare const _default: "2.2.0";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.1.0';
3
+ exports.default = '2.2.0';
4
4
  //# sourceMappingURL=version.js.map
@@ -62,7 +62,7 @@ platform — each containing a single `.node` binary. `native/kernel/index.js`
62
62
  `process.platform` / `process.arch` at load time.
63
63
 
64
64
  > **Status:** the per-platform packages are published on npm (kernel
65
- > `1.0.0`) and declared in the driver's `optionalDependencies`, pinned to
65
+ > `1.1.0`) and declared in the driver's `optionalDependencies`, pinned to
66
66
  > that exact version. `npm install` resolves only the package matching the
67
67
  > consumer's `process.platform` / `process.arch`; the others are skipped
68
68
  > (that is what `optionalDependencies` tolerates), so installing on an
@@ -344,7 +344,8 @@ export declare class Connection {
344
344
  */
345
345
  listCatalogs(): Promise<Statement>
346
346
  /**
347
- * Schemas filtered by catalog (exact) and schema name pattern.
347
+ * Schemas filtered by catalog (exact) and schema name pattern. An empty
348
+ * catalog matches nothing; non-empty catalogs remain exact identifiers.
348
349
  *
349
350
  * JDBC `getSchemas` shape: `TABLE_SCHEM, TABLE_CATALOG`.
350
351
  */
@@ -372,7 +373,8 @@ export declare class Connection {
372
373
  */
373
374
  listTables(catalog?: string | undefined | null, schemaPattern?: string | undefined | null, tablePattern?: string | undefined | null, tableTypes?: Array<string> | undefined | null): Promise<Statement>
374
375
  /**
375
- * Columns of tables matching the filter.
376
+ * Columns of tables matching the filter. An empty catalog matches
377
+ * nothing; non-empty catalogs remain exact identifiers.
376
378
  *
377
379
  * JDBC `getColumns` shape: 23 columns.
378
380
  */
@@ -931,8 +933,8 @@ export interface ConnectionOptions {
931
933
  * An **ordered list** of `(name, value)` pairs, mirroring the kernel
932
934
  * core's `Vec<(String, String)>` and the pyo3 binding's
933
935
  * `http_headers` — order is preserved and duplicate names are
934
- * allowed (the kernel emits each entry, and for `User-Agent` folds
935
- * the **last** one into its base UA).
936
+ * allowed (the kernel emits each entry, and uses the **last**
937
+ * `User-Agent` as its effective UA).
936
938
  *
937
939
  * Three names are handled specially by the kernel:
938
940
  * - `Authorization` / `x-databricks-org-id` are **reserved** — a
@@ -940,10 +942,9 @@ export interface ConnectionOptions {
940
942
  * auth and multi-tenant routing can't be hijacked by a custom
941
943
  * header. (The NodeJS driver also drops these before they cross
942
944
  * the FFI, matching the Python connector's double-wall.)
943
- * - `User-Agent` is **appended** to the kernel base UA (rather than
944
- * replacing it), preserving the `DatabricksJDBCDriverOSS/...`
945
- * token the SEA server keys on while still surfacing the caller's
946
- * identity. The NodeJS driver folds its `userAgentEntry` into a
945
+ * - `User-Agent` **replaces** the `DatabricksSQLKernel/...` base.
946
+ * Its leading prefix must therefore be allow-listed by the SEA
947
+ * server. The NodeJS driver folds its `userAgentEntry` into a
947
948
  * `User-Agent` entry here.
948
949
  */
949
950
  customHeaders?: Array<HeaderEntry>
@@ -1013,7 +1014,7 @@ export interface ConnectionOptions {
1013
1014
  /**
1014
1015
  * Time the telemetry circuit stays open before a half-open probe, in
1015
1016
  * milliseconds. Omitted ⇒ kernel default. Must be greater than zero when
1016
- * supplied.
1017
+ * the circuit breaker is enabled.
1017
1018
  */
1018
1019
  telemetryCircuitBreakerTimeoutMs?: number
1019
1020
  /**
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('@databricks/databricks-sql-kernel-android-arm64')
79
79
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('@databricks/databricks-sql-kernel-android-arm-eabi')
95
95
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('@databricks/databricks-sql-kernel-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('@databricks/databricks-sql-kernel-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@databricks/databricks-sql-kernel-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('@databricks/databricks-sql-kernel-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('@databricks/databricks-sql-kernel-darwin-universal')
184
184
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('@databricks/databricks-sql-kernel-darwin-x64')
200
200
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('@databricks/databricks-sql-kernel-darwin-arm64')
216
216
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('@databricks/databricks-sql-kernel-freebsd-x64')
236
236
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('@databricks/databricks-sql-kernel-freebsd-arm64')
252
252
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('@databricks/databricks-sql-kernel-linux-x64-musl')
273
273
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('@databricks/databricks-sql-kernel-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('@databricks/databricks-sql-kernel-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('@databricks/databricks-sql-kernel-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('@databricks/databricks-sql-kernel-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('@databricks/databricks-sql-kernel-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('@databricks/databricks-sql-kernel-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('@databricks/databricks-sql-kernel-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('@databricks/databricks-sql-kernel-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('@databricks/databricks-sql-kernel-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@databricks/databricks-sql-kernel-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@databricks/databricks-sql-kernel-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('@databricks/databricks-sql-kernel-openharmony-arm64')
478
478
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('@databricks/databricks-sql-kernel-openharmony-x64')
494
494
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('@databricks/databricks-sql-kernel-openharmony-arm')
510
510
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '1.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -648,8 +648,8 @@ if (!nativeBinding || forceWasi) {
648
648
  if (!candidateFailed) {
649
649
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
650
650
  const bindingPackageVersion = require('@databricks/databricks-sql-kernel-wasm32-wasi/package.json').version
651
- if (bindingPackageVersion !== '1.0.0') {
652
- throw new Error(`WASI binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
651
+ if (bindingPackageVersion !== '1.1.0') {
652
+ throw new Error(`WASI binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
653
653
  }
654
654
  }
655
655
  wasiBinding = require('@databricks/databricks-sql-kernel-wasm32-wasi')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sql",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Driver for connection to Databricks SQL via Thrift API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -91,14 +91,14 @@
91
91
  },
92
92
  "optionalDependencies": {
93
93
  "lz4-napi": "^2.9.0",
94
- "@databricks/databricks-sql-kernel-linux-x64-gnu": "1.0.0",
95
- "@databricks/databricks-sql-kernel-linux-arm64-gnu": "1.0.0",
96
- "@databricks/databricks-sql-kernel-linux-x64-musl": "1.0.0",
97
- "@databricks/databricks-sql-kernel-linux-arm64-musl": "1.0.0",
98
- "@databricks/databricks-sql-kernel-darwin-x64": "1.0.0",
99
- "@databricks/databricks-sql-kernel-darwin-arm64": "1.0.0",
100
- "@databricks/databricks-sql-kernel-win32-x64-msvc": "1.0.0",
101
- "@databricks/databricks-sql-kernel-win32-arm64-msvc": "1.0.0"
94
+ "@databricks/databricks-sql-kernel-linux-x64-gnu": "1.1.0",
95
+ "@databricks/databricks-sql-kernel-linux-arm64-gnu": "1.1.0",
96
+ "@databricks/databricks-sql-kernel-linux-x64-musl": "1.1.0",
97
+ "@databricks/databricks-sql-kernel-linux-arm64-musl": "1.1.0",
98
+ "@databricks/databricks-sql-kernel-darwin-x64": "1.1.0",
99
+ "@databricks/databricks-sql-kernel-darwin-arm64": "1.1.0",
100
+ "@databricks/databricks-sql-kernel-win32-x64-msvc": "1.1.0",
101
+ "@databricks/databricks-sql-kernel-win32-arm64-msvc": "1.1.0"
102
102
  },
103
103
  "overrides": {
104
104
  "basic-ftp": "^5.3.1",