diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f8dca7f..01214084 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,10 @@ ## 0.1.x (Unreleased) -- Added support for DirectResults, which speeds up data fetches by reducing the number of server roundtrips when possible. +## 0.1.8-beta.2 (2022-09-08) + +- Operations will wait for cluster to start instead of failing +- Added support for DirectResults, which speeds up data fetches by reducing the number of server roundtrips when possible - `DBSQLOperation` interface simplified: `HiveUtils` were removed and replaced with new methods `DBSQLOperation.fetchChunk`/`DBSQLOperation.fetchAll`. New API implements all necessary waiting and data conversion routines internally diff --git a/examples/data_types.js b/examples/data_types.js index 86647371..5e8a9085 100644 --- a/examples/data_types.js +++ b/examples/data_types.js @@ -1,9 +1,7 @@ -const { DBSQLClient } = require('../'); +const { DBSQLClient, utils } = require('../'); const client = new DBSQLClient(); -const utils = DBSQLClient.utils; - const host = '****.databricks.com'; const path = '/sql/1.0/endpoints/****'; const token = 'dapi********************************'; diff --git a/lib/index.ts b/lib/index.ts index 1a59fe99..76bf3458 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -5,6 +5,7 @@ import DBSQLSession from './DBSQLSession'; import NoSaslAuthentication from './connection/auth/NoSaslAuthentication'; import PlainHttpAuthentication from './connection/auth/PlainHttpAuthentication'; import HttpConnection from './connection/connections/HttpConnection'; +import { formatProgress } from './utils'; export const auth = { NoSaslAuthentication, @@ -20,4 +21,8 @@ export const thrift = { TCLIService_types, }; +export const utils = { + formatProgress, +}; + export { DBSQLClient, DBSQLSession }; diff --git a/package.json b/package.json index c348ad79..03d67ac1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@databricks/sql", - "version": "0.1.8-beta.1", + "version": "0.1.8-beta.2", "description": "Driver for connection to Databricks SQL via Thrift API.", "main": "dist/index.js", "types": "dist/index.d.ts",