-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
getting an error when I try to get columns of the table.
version: @databricks/sql@0.1.8-beta.2
TypeError: Cannot read properties of undefined (reading 'binaryVal')
at JsonResult.getColumnValue (/Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:108:23)
at JsonResult.getSchemaValues (/Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:40:34)
at /Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:28:62
at Array.reduce (<anonymous>)
at JsonResult.getRows (/Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:28:28)
at /Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:17:31
at Array.reduce (<anonymous>)
at JsonResult.getValue (/Users/jani/code/lightdash/node_modules/@databricks/sql/dist/result/JsonResult.js:15:26)
at getResult (/Users/jani/code/lightdash/node_modules/@databricks/sql/dist/DBSQLOperation/getResult.js:16:20)
at /Users/jani/code/lightdash/node_modules/@databricks/sql/dist/DBSQLOperation/index.js:48:56
code that I am running:
query = await session.getColumns({
catalogName: request.database,
schemaName: request.schema,
tableName: request.table,
});
const result = await query.fetchAll()