Skip to content

Commit b3ac7a1

Browse files
authored
fix(databricks-driver): Remove package.json dependency from DatabricksDriver to avoid package.json not found issues (#6521) Thanks @carlagouveia !
* Remove package.json dependency from DatabricksDriver.ts * Update DatabricksDriver.ts Changed `UserAgentEntry` value.
1 parent a343f4d commit b3ac7a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ import {
2727
import { DatabricksQuery } from './DatabricksQuery';
2828
import { downloadJDBCDriver } from './installer';
2929

30-
const { version } = require('../../package.json');
31-
3230
export type DatabricksDriverConfiguration = JDBCDriverConfiguration &
3331
{
3432
/**
@@ -210,7 +208,7 @@ export class DatabricksDriver extends JDBCDriver {
210208
conf?.token ||
211209
getEnv('databrickToken', { dataSource }) ||
212210
'',
213-
UserAgentEntry: `CubeDev+Cube/${version} (Databricks)`,
211+
UserAgentEntry: `CubeDev_Cube`,
214212
},
215213
catalog:
216214
conf?.catalog ||

0 commit comments

Comments
 (0)