A Node.js driver for connecting to Databricks clusters and SQL warehouses via the Thrift API (HiveServer2 protocol). Current stable version is 1.8.5, with monthly releases. It is a fork of the Hive Driver, supporting both CommonJS and ESM. Key differentiators: direct Databricks SQL support, token-based authentication, and TypeScript types included. Note: this is a community fork (owens3364) that removes lz4 dependency for better Node 20 compatibility.
npm install databricks-sql-nodejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a Databricks SQL warehouse, runs a query, and prints results as a table.
Use official 'databricks-sql-nodejs' if you need Databricks support, but verify the maintainer. Alternatively, use '@databricks/sql' for the official driver.
Check your workspace's SQL endpoint documentation and use the correct path.
Use .then(client => { /* client is the same instance */ }) or async/await as shown in examples.Always use ORDER BY in queries when row order is important.
If you need lz4 compression, install it separately and configure thrift transport accordingly.
Verify host and path. Ensure the SQL warehouse is running and your IP is allowed in the workspace's firewall settings.
Use the correct SQL warehouse path, e.g., '/sql/2.0/warehouses/warehouse-id'.
Update to the latest version of the driver. Check Databricks SQL warehouse status and try again.
Change import to: import { DBSQLClient } from 'databricks-sql-nodejs' (note curly braces).No dependency data recorded yet.