Skip to content

Commit 67bea27

Browse files
Prepare release v1.4.0 (#160)
* Prepare release v1.4.0 Signed-off-by: Levko Kravets <[email protected]> * Update changelog Signed-off-by: Levko Kravets <[email protected]> --------- Signed-off-by: Levko Kravets <[email protected]>
1 parent a8e14d7 commit 67bea27

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Release History
22

3+
## 1.4.0
4+
5+
- Added Cloud Fetch support (databricks/databricks-sql-nodejs#158)
6+
- Improved handling of closed sessions and operations (databricks/databricks-sql-nodejs#129).
7+
Now, when session gets closed, all operations associated with it are immediately closed.
8+
Similarly, if client gets closed - all associated sessions (and their operations) are closed as well.
9+
10+
**Notes**:
11+
12+
Cloud Fetch is disabled by default. To use it, pass `useCloudFetch: true`
13+
to `IDBSQLSession.executeStatement()`. For example:
14+
15+
```ts
16+
// obtain session object as usual
17+
const operation = session.executeStatement(query, {
18+
runAsync: true,
19+
useCloudFetch: true,
20+
});
21+
```
22+
23+
Note that Cloud Fetch is effectively enabled only for really large datasets, so if
24+
the query returns only few thousands records, Cloud Fetch won't be enabled no matter
25+
what `useCloudFetch` setting is. Also gentle reminder that for large datasets
26+
it's better to use `fetchChunk` instead of `fetchAll` to avoid OOM errors:
27+
28+
```ts
29+
do {
30+
const chunk = await operation.fetchChunk({ maxRows: 100000 });
31+
// process chunk here
32+
} while (await operation.hasMoreRows());
33+
```
34+
335
## 1.3.0
436

537
- Implemented automatic retry for some HTTP errors (429, 503) (databricks/databricks-sql-nodejs#127)

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@databricks/sql",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "Driver for connection to Databricks SQL via Thrift API.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)