@databricks/sql 1.7.1 → 1.8.1
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.
- package/dist/DBSQLClient.js +27 -1
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/{DBSQLOperation/index.d.ts → DBSQLOperation.d.ts} +4 -4
- package/dist/{DBSQLOperation/index.js → DBSQLOperation.js} +15 -15
- package/dist/{DBSQLOperation/index.js.map → DBSQLOperation.js.map} +1 -1
- package/dist/DBSQLSession.js +1 -1
- package/dist/DBSQLSession.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.d.ts +9 -4
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js +85 -36
- package/dist/connection/auth/DatabricksOAuth/OAuthManager.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.d.ts +2 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js +1 -0
- package/dist/connection/auth/DatabricksOAuth/OAuthScope.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.d.ts +4 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js +5 -1
- package/dist/connection/auth/DatabricksOAuth/OAuthToken.js.map +1 -1
- package/dist/connection/auth/DatabricksOAuth/index.d.ts +2 -2
- package/dist/connection/auth/DatabricksOAuth/index.js +26 -4
- package/dist/connection/auth/DatabricksOAuth/index.js.map +1 -1
- package/dist/connection/connections/HttpConnection.d.ts +3 -1
- package/dist/connection/connections/HttpConnection.js +7 -0
- package/dist/connection/connections/HttpConnection.js.map +1 -1
- package/dist/connection/connections/HttpRetryPolicy.d.ts +11 -0
- package/dist/connection/connections/HttpRetryPolicy.js +97 -0
- package/dist/connection/connections/HttpRetryPolicy.js.map +1 -0
- package/dist/connection/connections/ThriftHttpConnection.d.ts +3 -0
- package/dist/connection/connections/ThriftHttpConnection.js +6 -1
- package/dist/connection/connections/ThriftHttpConnection.js.map +1 -1
- package/dist/connection/contracts/IConnectionProvider.d.ts +3 -1
- package/dist/connection/contracts/IRetryPolicy.d.ts +11 -0
- package/dist/connection/contracts/IRetryPolicy.js +3 -0
- package/dist/connection/contracts/IRetryPolicy.js.map +1 -0
- package/dist/contracts/IClientContext.d.ts +1 -0
- package/dist/contracts/IDBSQLClient.d.ts +1 -0
- package/dist/errors/RetryError.d.ts +9 -0
- package/dist/errors/RetryError.js +21 -0
- package/dist/errors/RetryError.js.map +1 -0
- package/dist/hive/Commands/BaseCommand.d.ts +0 -1
- package/dist/hive/Commands/BaseCommand.js +33 -41
- package/dist/hive/Commands/BaseCommand.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/polyfills.d.ts +1 -0
- package/dist/polyfills.js +48 -0
- package/dist/polyfills.js.map +1 -0
- package/dist/result/ArrowResultHandler.d.ts +2 -2
- package/dist/result/ArrowResultHandler.js +9 -4
- package/dist/result/ArrowResultHandler.js.map +1 -1
- package/dist/result/CloudFetchResultHandler.d.ts +2 -2
- package/dist/result/CloudFetchResultHandler.js +12 -5
- package/dist/result/CloudFetchResultHandler.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable import/prefer-default-export */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.at = void 0;
|
|
5
|
+
// `Array.at` / `TypedArray.at` is supported only since Nodejs@16.6.0
|
|
6
|
+
// These methods are massively used by `apache-arrow@13`, but we have
|
|
7
|
+
// to use this version because older ones contain some other nasty bugs
|
|
8
|
+
// https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tointegerorinfinity
|
|
9
|
+
function toIntegerOrInfinity(value) {
|
|
10
|
+
const result = Number(value);
|
|
11
|
+
// Return `0` for NaN; return `+Infinity` / `-Infinity` as is
|
|
12
|
+
if (!Number.isFinite(result)) {
|
|
13
|
+
return Number.isNaN(result) ? 0 : result;
|
|
14
|
+
}
|
|
15
|
+
return Math.trunc(result);
|
|
16
|
+
}
|
|
17
|
+
// https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tolength
|
|
18
|
+
function toLength(value) {
|
|
19
|
+
const result = toIntegerOrInfinity(value);
|
|
20
|
+
return result > 0 ? Math.min(result, Number.MAX_SAFE_INTEGER) : 0;
|
|
21
|
+
}
|
|
22
|
+
// https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.at
|
|
23
|
+
function at(index) {
|
|
24
|
+
const length = toLength(this.length);
|
|
25
|
+
const relativeIndex = toIntegerOrInfinity(index);
|
|
26
|
+
const absoluteIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
|
|
27
|
+
return absoluteIndex >= 0 && absoluteIndex < length ? this[absoluteIndex] : undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.at = at;
|
|
30
|
+
const ArrayConstructors = [
|
|
31
|
+
global.Array,
|
|
32
|
+
global.Int8Array,
|
|
33
|
+
global.Uint8Array,
|
|
34
|
+
global.Uint8ClampedArray,
|
|
35
|
+
global.Int16Array,
|
|
36
|
+
global.Uint16Array,
|
|
37
|
+
global.Int32Array,
|
|
38
|
+
global.Uint32Array,
|
|
39
|
+
global.Float32Array,
|
|
40
|
+
global.Float64Array,
|
|
41
|
+
global.BigInt64Array,
|
|
42
|
+
global.BigUint64Array,
|
|
43
|
+
];
|
|
44
|
+
ArrayConstructors.forEach((ArrayConstructor) => {
|
|
45
|
+
var _a;
|
|
46
|
+
ArrayConstructor.prototype.at = (_a = ArrayConstructor.prototype.at) !== null && _a !== void 0 ? _a : at;
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=polyfills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../lib/polyfills.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAEjD,qEAAqE;AACrE,q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AAW;IAClB,MAAM,CAAC,UAAU;IACjB,MAAM,CAAC,WAAW;IAClB,MAAM,CAAC,YAAY;IACnB,MAAM,CAAC,YAAY;IACnB,MAAM,CAAC,aAAa;IACpB,MAAM,CAAC,cAAc;CACtB,CAAC;AAEF,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;;IAC7C,gBAAgB,CAAC,SAAS,CAAC,EAAE,GAAG,MAAA,gBAAgB,CAAC,SAAS,CAAC,EAAE,mCAAI,EAAE,CAAC;AACtE,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Buffer } from 'buffer';
|
|
3
2
|
import { TRowSet } from '../../thrift/TCLIService_types';
|
|
4
3
|
import IClientContext from '../contracts/IClientContext';
|
|
5
4
|
import IResultsProvider, { ResultsProviderFetchNextOptions } from './IResultsProvider';
|
|
@@ -7,7 +6,8 @@ export default class ArrowResultHandler implements IResultsProvider<Array<Buffer
|
|
|
7
6
|
protected readonly context: IClientContext;
|
|
8
7
|
private readonly source;
|
|
9
8
|
private readonly arrowSchema?;
|
|
10
|
-
|
|
9
|
+
private readonly isLZ4Compressed;
|
|
10
|
+
constructor(context: IClientContext, source: IResultsProvider<TRowSet | undefined>, arrowSchema?: Buffer, isLZ4Compressed?: boolean);
|
|
11
11
|
hasMore(): Promise<boolean>;
|
|
12
12
|
fetchNext(options: ResultsProviderFetchNextOptions): Promise<Buffer[]>;
|
|
13
13
|
}
|
|
@@ -8,12 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const lz4_1 = __importDefault(require("lz4"));
|
|
12
16
|
class ArrowResultHandler {
|
|
13
|
-
constructor(context, source, arrowSchema) {
|
|
17
|
+
constructor(context, source, arrowSchema, isLZ4Compressed) {
|
|
14
18
|
this.context = context;
|
|
15
19
|
this.source = source;
|
|
16
20
|
this.arrowSchema = arrowSchema;
|
|
21
|
+
this.isLZ4Compressed = isLZ4Compressed !== null && isLZ4Compressed !== void 0 ? isLZ4Compressed : false;
|
|
17
22
|
}
|
|
18
23
|
hasMore() {
|
|
19
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -31,9 +36,9 @@ class ArrowResultHandler {
|
|
|
31
36
|
}
|
|
32
37
|
const rowSet = yield this.source.fetchNext(options);
|
|
33
38
|
const batches = [];
|
|
34
|
-
(_a = rowSet === null || rowSet === void 0 ? void 0 : rowSet.arrowBatches) === null || _a === void 0 ? void 0 : _a.forEach((
|
|
35
|
-
if (
|
|
36
|
-
batches.push(
|
|
39
|
+
(_a = rowSet === null || rowSet === void 0 ? void 0 : rowSet.arrowBatches) === null || _a === void 0 ? void 0 : _a.forEach(({ batch }) => {
|
|
40
|
+
if (batch) {
|
|
41
|
+
batches.push(this.isLZ4Compressed ? lz4_1.default.decode(batch) : batch);
|
|
37
42
|
}
|
|
38
43
|
});
|
|
39
44
|
if (batches.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowResultHandler.js","sourceRoot":"","sources":["../../lib/result/ArrowResultHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrowResultHandler.js","sourceRoot":"","sources":["../../lib/result/ArrowResultHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8CAAsB;AAKtB,MAAqB,kBAAkB;IASrC,YACE,OAAuB,EACvB,MAA6C,EAC7C,WAAoB,EACpB,eAAyB;QAEzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,KAAK,CAAC;IAClD,CAAC;IAEY,OAAO;;YAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBACrB,OAAO,KAAK,CAAC;aACd;YACD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC/B,CAAC;KAAA;IAEY,SAAS,CAAC,OAAwC;;;YAC7D,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBACrB,OAAO,EAAE,CAAC;aACX;YAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAEpD,MAAM,OAAO,GAAkB,EAAE,CAAC;YAClC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,0CAAE,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;gBAC1C,IAAI,KAAK,EAAE;oBACT,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,aAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;iBAChE;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBACxB,OAAO,EAAE,CAAC;aACX;YAED,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,CAAC;;KACvC;CACF;AAhDD,qCAgDC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Buffer } from 'buffer';
|
|
3
2
|
import { TRowSet } from '../../thrift/TCLIService_types';
|
|
4
3
|
import IClientContext from '../contracts/IClientContext';
|
|
5
4
|
import IResultsProvider, { ResultsProviderFetchNextOptions } from './IResultsProvider';
|
|
6
5
|
export default class CloudFetchResultHandler implements IResultsProvider<Array<Buffer>> {
|
|
7
6
|
protected readonly context: IClientContext;
|
|
8
7
|
private readonly source;
|
|
8
|
+
private readonly isLZ4Compressed;
|
|
9
9
|
private pendingLinks;
|
|
10
10
|
private downloadTasks;
|
|
11
|
-
constructor(context: IClientContext, source: IResultsProvider<TRowSet | undefined
|
|
11
|
+
constructor(context: IClientContext, source: IResultsProvider<TRowSet | undefined>, isLZ4Compressed?: boolean);
|
|
12
12
|
hasMore(): Promise<boolean>;
|
|
13
13
|
fetchNext(options: ResultsProviderFetchNextOptions): Promise<Buffer[]>;
|
|
14
14
|
private downloadLink;
|
|
@@ -12,14 +12,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const
|
|
15
|
+
const lz4_1 = __importDefault(require("lz4"));
|
|
16
16
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
17
17
|
class CloudFetchResultHandler {
|
|
18
|
-
constructor(context, source) {
|
|
18
|
+
constructor(context, source, isLZ4Compressed) {
|
|
19
19
|
this.pendingLinks = [];
|
|
20
20
|
this.downloadTasks = [];
|
|
21
21
|
this.context = context;
|
|
22
22
|
this.source = source;
|
|
23
|
+
this.isLZ4Compressed = isLZ4Compressed !== null && isLZ4Compressed !== void 0 ? isLZ4Compressed : false;
|
|
23
24
|
}
|
|
24
25
|
hasMore() {
|
|
25
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -44,7 +45,11 @@ class CloudFetchResultHandler {
|
|
|
44
45
|
this.downloadTasks.push(...tasks);
|
|
45
46
|
}
|
|
46
47
|
const batch = yield this.downloadTasks.shift();
|
|
47
|
-
|
|
48
|
+
const batches = batch ? [batch] : [];
|
|
49
|
+
if (this.isLZ4Compressed) {
|
|
50
|
+
return batches.map((buffer) => lz4_1.default.decode(buffer));
|
|
51
|
+
}
|
|
52
|
+
return batches;
|
|
48
53
|
});
|
|
49
54
|
}
|
|
50
55
|
downloadLink(link) {
|
|
@@ -57,14 +62,16 @@ class CloudFetchResultHandler {
|
|
|
57
62
|
throw new Error(`CloudFetch HTTP error ${response.status} ${response.statusText}`);
|
|
58
63
|
}
|
|
59
64
|
const result = yield response.arrayBuffer();
|
|
60
|
-
return
|
|
65
|
+
return Buffer.from(result);
|
|
61
66
|
});
|
|
62
67
|
}
|
|
63
68
|
fetch(url, init) {
|
|
64
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
70
|
const connectionProvider = yield this.context.getConnectionProvider();
|
|
66
71
|
const agent = yield connectionProvider.getAgent();
|
|
67
|
-
|
|
72
|
+
const retryPolicy = yield connectionProvider.getRetryPolicy();
|
|
73
|
+
const requestConfig = Object.assign({ agent }, init);
|
|
74
|
+
return retryPolicy.invokeWithRetry(() => (0, node_fetch_1.default)(url, requestConfig));
|
|
68
75
|
});
|
|
69
76
|
}
|
|
70
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudFetchResultHandler.js","sourceRoot":"","sources":["../../lib/result/CloudFetchResultHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CloudFetchResultHandler.js","sourceRoot":"","sources":["../../lib/result/CloudFetchResultHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8CAAsB;AACtB,4DAA6D;AAK7D,MAAqB,uBAAuB;IAW1C,YAAY,OAAuB,EAAE,MAA6C,EAAE,eAAyB;QAJrG,iBAAY,GAAiC,EAAE,CAAC;QAEhD,kBAAa,GAA2B,EAAE,CAAC;QAGjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,KAAK,CAAC;IAClD,CAAC;IAEY,OAAO;;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|
export default _default;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sql",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
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",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"prepare": "npm run build",
|
|
16
|
-
"e2e": "nyc --reporter=lcov --report-dir
|
|
17
|
-
"test": "nyc --reporter=lcov --report-dir
|
|
16
|
+
"e2e": "nyc --reporter=lcov --report-dir=${NYC_REPORT_DIR:-coverage_e2e} mocha --config tests/e2e/.mocharc.js",
|
|
17
|
+
"test": "nyc --reporter=lcov --report-dir=${NYC_REPORT_DIR:-coverage_unit} mocha --config tests/unit/.mocharc.js",
|
|
18
18
|
"update-version": "node bin/update-version.js && prettier --write ./lib/version.ts",
|
|
19
19
|
"build": "npm run update-version && tsc",
|
|
20
20
|
"watch": "tsc -w",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"license": "Apache 2.0",
|
|
49
49
|
"devDependencies": {
|
|
50
|
+
"@types/lz4": "^0.6.4",
|
|
50
51
|
"@types/node": "^18.11.9",
|
|
51
52
|
"@types/node-fetch": "^2.6.4",
|
|
52
53
|
"@types/node-int64": "^0.4.29",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"dependencies": {
|
|
74
75
|
"apache-arrow": "^13.0.0",
|
|
75
76
|
"commander": "^9.3.0",
|
|
77
|
+
"lz4": "^0.6.5",
|
|
76
78
|
"node-fetch": "^2.6.12",
|
|
77
79
|
"node-int64": "^0.4.0",
|
|
78
80
|
"open": "^8.4.2",
|