@databricks/sql 1.1.0 → 1.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.
- package/dist/DBSQLClient.d.ts +3 -1
- package/dist/DBSQLClient.js +11 -8
- package/dist/DBSQLClient.js.map +1 -1
- package/dist/DBSQLOperation/SchemaHelper.d.ts +1 -1
- package/dist/DBSQLOperation/SchemaHelper.js +4 -2
- package/dist/DBSQLOperation/SchemaHelper.js.map +1 -1
- package/dist/DBSQLSession.js +20 -1
- package/dist/DBSQLSession.js.map +1 -1
- package/dist/connection/auth/PlainHttpAuthentication.d.ts +1 -1
- package/dist/connection/contracts/IConnectionOptions.d.ts +1 -1
- package/dist/connection/contracts/ITransport.d.ts +1 -1
- package/dist/connection/types/AuthOptions.d.ts +1 -1
- package/dist/contracts/IDBSQLSession.d.ts +10 -10
- package/dist/contracts/IOperation.d.ts +1 -1
- package/dist/dto/InfoValue.d.ts +1 -1
- package/dist/dto/Status.d.ts +1 -1
- package/dist/globalConfig.d.ts +5 -0
- package/dist/globalConfig.js +7 -0
- package/dist/globalConfig.js.map +1 -0
- package/dist/hive/Types/index.d.ts +1 -1
- package/dist/result/ArrowResult.d.ts +14 -0
- package/dist/result/ArrowResult.js +105 -0
- package/dist/result/ArrowResult.js.map +1 -0
- package/dist/result/JsonResult.d.ts +1 -5
- package/dist/result/JsonResult.js +5 -59
- package/dist/result/JsonResult.js.map +1 -1
- package/dist/result/utils.d.ts +3 -0
- package/dist/result/utils.js +77 -0
- package/dist/result/utils.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/node_modules/async-limiter/.eslintignore +2 -0
- package/node_modules/async-limiter/.nycrc +10 -0
- package/node_modules/async-limiter/.travis.yml +9 -0
- package/node_modules/async-limiter/LICENSE +8 -0
- package/node_modules/async-limiter/index.js +67 -0
- package/node_modules/async-limiter/package.json +35 -0
- package/node_modules/async-limiter/readme.md +132 -0
- package/node_modules/browser-or-node/LICENSE +21 -0
- package/node_modules/browser-or-node/README.md +63 -0
- package/node_modules/browser-or-node/lib/index.js +31 -0
- package/node_modules/browser-or-node/package.json +60 -0
- package/node_modules/browser-or-node/src/index.js +26 -0
- package/node_modules/isomorphic-ws/LICENSE +21 -0
- package/node_modules/isomorphic-ws/README.md +58 -0
- package/node_modules/isomorphic-ws/browser.js +17 -0
- package/node_modules/isomorphic-ws/index.d.ts +8 -0
- package/node_modules/isomorphic-ws/node.js +3 -0
- package/node_modules/isomorphic-ws/package.json +34 -0
- package/node_modules/node-int64/.npmignore +3 -0
- package/node_modules/node-int64/Int64.js +268 -0
- package/node_modules/node-int64/LICENSE +19 -0
- package/node_modules/node-int64/README.md +78 -0
- package/node_modules/node-int64/package.json +27 -0
- package/node_modules/node-int64/test.js +120 -0
- package/node_modules/q/CHANGES.md +800 -0
- package/node_modules/q/LICENSE +18 -0
- package/node_modules/q/README.md +874 -0
- package/node_modules/q/package.json +76 -0
- package/node_modules/q/q.js +2076 -0
- package/node_modules/q/queue.js +35 -0
- package/node_modules/thrift/LICENSE +306 -0
- package/node_modules/thrift/README.md +210 -0
- package/node_modules/thrift/lib/nodejs/README.md +142 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/binary.js +168 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/binary_protocol.js +367 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/browser.js +49 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/buffered_transport.js +186 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/compact_protocol.js +915 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/connection.js +396 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/create_client.js +54 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/framed_transport.js +185 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/header_protocol.js +258 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/header_transport.js +341 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/http_connection.js +282 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/index.js +76 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/input_buffer_underrun_error.js +32 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/int64_util.js +91 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/json_parse.js +299 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/json_protocol.js +799 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/log.js +87 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/multiplexed_processor.js +63 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/multiplexed_protocol.js +73 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/protocol.js +22 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/server.js +123 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/thrift.js +241 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/transport.js +22 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/web_server.js +567 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/ws_connection.js +286 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/ws_transport.js +206 -0
- package/node_modules/thrift/lib/nodejs/lib/thrift/xhr_connection.js +280 -0
- package/node_modules/thrift/package.json +72 -0
- package/node_modules/ws/LICENSE +21 -0
- package/node_modules/ws/README.md +417 -0
- package/node_modules/ws/index.js +9 -0
- package/node_modules/ws/lib/buffer-util.js +72 -0
- package/node_modules/ws/lib/constants.js +10 -0
- package/node_modules/ws/lib/event-target.js +170 -0
- package/node_modules/ws/lib/extension.js +211 -0
- package/node_modules/ws/lib/permessage-deflate.js +516 -0
- package/node_modules/ws/lib/receiver.js +513 -0
- package/node_modules/ws/lib/sender.js +401 -0
- package/node_modules/ws/lib/validation.js +29 -0
- package/node_modules/ws/lib/websocket-server.js +369 -0
- package/node_modules/ws/lib/websocket.js +828 -0
- package/node_modules/ws/package.json +44 -0
- package/package.json +12 -8
- package/CHANGELOG.md +0 -56
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ws",
|
|
3
|
+
"version": "5.2.3",
|
|
4
|
+
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"HyBi",
|
|
7
|
+
"Push",
|
|
8
|
+
"RFC-6455",
|
|
9
|
+
"WebSocket",
|
|
10
|
+
"WebSockets",
|
|
11
|
+
"real-time"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/websockets/ws",
|
|
14
|
+
"bugs": "https://github.com/websockets/ws/issues",
|
|
15
|
+
"repository": "websockets/ws",
|
|
16
|
+
"author": "Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"main": "index.js",
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"lib"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "eslint . && nyc --reporter=html --reporter=text mocha test/*.test.js",
|
|
25
|
+
"integration": "eslint . && mocha test/*.integration.js",
|
|
26
|
+
"lint": "eslint ."
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"async-limiter": "~1.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"benchmark": "~2.1.2",
|
|
33
|
+
"bufferutil": "~3.0.0",
|
|
34
|
+
"eslint": "~4.19.0",
|
|
35
|
+
"eslint-config-standard": "~11.0.0",
|
|
36
|
+
"eslint-plugin-import": "~2.12.0",
|
|
37
|
+
"eslint-plugin-node": "~6.0.0",
|
|
38
|
+
"eslint-plugin-promise": "~3.8.0",
|
|
39
|
+
"eslint-plugin-standard": "~3.0.0",
|
|
40
|
+
"mocha": "~5.2.0",
|
|
41
|
+
"nyc": "~12.0.2",
|
|
42
|
+
"utf-8-validate": "~4.0.0"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sql",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.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",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
],
|
|
49
49
|
"license": "Apache 2.0",
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/node": "^18.
|
|
51
|
+
"@types/node": "^18.11.9",
|
|
52
52
|
"@types/node-int64": "^0.4.29",
|
|
53
53
|
"@types/thrift": "^0.10.11",
|
|
54
54
|
"@types/uuid": "^8.3.4",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
56
|
-
"@typescript-eslint/parser": "^5.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
56
|
+
"@typescript-eslint/parser": "^5.44.0",
|
|
57
57
|
"chai": "^4.3.6",
|
|
58
58
|
"eslint": "^8.22.0",
|
|
59
59
|
"eslint-config-airbnb": "^19.0.4",
|
|
@@ -63,18 +63,22 @@
|
|
|
63
63
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
64
64
|
"eslint-plugin-react": "^7.30.1",
|
|
65
65
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
66
|
-
"mocha": "^10.
|
|
66
|
+
"mocha": "^10.2.0",
|
|
67
67
|
"nyc": "^15.1.0",
|
|
68
|
-
"prettier": "^2.
|
|
68
|
+
"prettier": "^2.8.4",
|
|
69
69
|
"sinon": "^14.0.0",
|
|
70
|
-
"typescript": "^4.
|
|
70
|
+
"typescript": "^4.9.3"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
+
"apache-arrow": "^10.0.1",
|
|
73
74
|
"commander": "^9.3.0",
|
|
74
75
|
"node-int64": "^0.4.0",
|
|
75
76
|
"patch-package": "^6.5.0",
|
|
76
77
|
"thrift": "^0.16.0",
|
|
77
78
|
"uuid": "^9.0.0",
|
|
78
79
|
"winston": "^3.8.2"
|
|
79
|
-
}
|
|
80
|
+
},
|
|
81
|
+
"bundledDependencies": [
|
|
82
|
+
"thrift"
|
|
83
|
+
]
|
|
80
84
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Release History
|
|
2
|
-
|
|
3
|
-
## 1.x (Unreleased)
|
|
4
|
-
|
|
5
|
-
## 1.1.0
|
|
6
|
-
|
|
7
|
-
- Fix: now library will not attempt to parse column names and will use ones provided by server
|
|
8
|
-
(databricks/databricks-sql-nodejs#84)
|
|
9
|
-
- Better error handling: more errors can now be handled in specific `.catch()` handlers instead of being
|
|
10
|
-
emitted as a generic `error` event (databricks/databricks-sql-nodejs#99)
|
|
11
|
-
- Fixed error logging bug (attempt to serialize circular structures) (databricks/databricks-sql-nodejs#89)
|
|
12
|
-
- Fixed some minor bugs and regressions
|
|
13
|
-
|
|
14
|
-
## 1.0.0
|
|
15
|
-
|
|
16
|
-
- `DBSQLClient.openSession` now takes a limited set of options (`OpenSessionRequest` instead of Thrift's `TOpenSessionReq`)
|
|
17
|
-
- `DBSQLClient.openSession` now uses the latest protocol version by default
|
|
18
|
-
- Direct results feature is now available for all IOperation methods which support it. To enable direct results feature,
|
|
19
|
-
`maxRows` option should be used
|
|
20
|
-
- Direct results became enabled by default. If `maxRows` is omitted - it will default to `100000`. To disable direct
|
|
21
|
-
results, set `maxRows` to `null`
|
|
22
|
-
- `FunctionNameRequest` type renamed to `FunctionsRequest`
|
|
23
|
-
- `IDBSQLConnectionOptions` type renamed to `ConnectionOptions`
|
|
24
|
-
- `IFetchOptions` renamed to `FetchOptions`
|
|
25
|
-
- `DBSQLOperation.getSchema` will wait for operation completion, like `DBSQLOperation.fetchChunk`/`DBSQLOperation.fetchAll`.
|
|
26
|
-
It also supports the same progress reporting options
|
|
27
|
-
- `runAsync` option is now available for all operations that support it
|
|
28
|
-
- Added logging functionality for logging on client side and added new optional logger param for DBSQLClient constructor
|
|
29
|
-
- Turned on Direct results feature by default
|
|
30
|
-
- Removed legacy Kerberos auth APIs
|
|
31
|
-
|
|
32
|
-
## 0.1.8-beta.2 (2022-09-08)
|
|
33
|
-
|
|
34
|
-
- Operations will wait for cluster to start instead of failing
|
|
35
|
-
- Added support for DirectResults, which speeds up data fetches by reducing the number of server roundtrips when possible
|
|
36
|
-
- `DBSQLOperation` interface simplified: `HiveUtils` were removed and replaced with new methods
|
|
37
|
-
`DBSQLOperation.fetchChunk`/`DBSQLOperation.fetchAll`. New API implements all necessary waiting
|
|
38
|
-
and data conversion routines internally
|
|
39
|
-
- Better TypeScript support
|
|
40
|
-
- Thrift definitions updated to support additional Databricks features
|
|
41
|
-
- User-agent string updated; a part of user-agent string is configurable through `DBSQLClient`'s `clientId` option
|
|
42
|
-
- Connection now uses keep-alive (not configurable at this moment)
|
|
43
|
-
- `DBSQLClient` now prepends slash to path when needed
|
|
44
|
-
- `DBSQLOperation`: default chunk size for data fetching increased from 100 to 100.000
|
|
45
|
-
|
|
46
|
-
### Upgrading
|
|
47
|
-
|
|
48
|
-
`DBSQLClient.utils` was permanently removed. Code which used `utils.waitUntilReady`, `utils.fetchAll`
|
|
49
|
-
and `utils.getResult` to get data should now be replaced with the single `DBSQLOperation.fetchAll` method.
|
|
50
|
-
Progress reporting, previously supported by `utils.waitUntilReady`, is now configurable via
|
|
51
|
-
`DBSQLOperation.fetchChunk`/`DBSQLOperation.fetchAll` options. `DBSQLOperation.setMaxRows` also became
|
|
52
|
-
an option of methods mentioned above.
|
|
53
|
-
|
|
54
|
-
## 0.1.8-beta.1 (2022-06-24)
|
|
55
|
-
|
|
56
|
-
- Initial release
|