Skip to content

Commit 31c339a

Browse files
committed
switch to oss driver version
1 parent 7545e49 commit 31c339a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ async function fileExistsOr(
1515

1616
export async function resolveJDBCDriver(): Promise<string> {
1717
return fileExistsOr(
18-
path.join(process.cwd(), 'DatabricksJDBC42.jar'),
18+
path.join(process.cwd(), 'databricks-jdbc-1.0.2-oss.jar'),
1919
async () => fileExistsOr(
20-
path.join(__dirname, '..', 'download', 'DatabricksJDBC42.jar'),
20+
path.join(__dirname, '..', 'download', 'databricks-jdbc-1.0.2-oss.jar'),
2121
async () => {
2222
const pathOrNull = await downloadJDBCDriver();
2323
if (pathOrNull) {
2424
return pathOrNull;
2525
}
2626
throw new Error(
27-
'Please download and place DatabricksJDBC42.jar inside your ' +
27+
'Please download and place databricks-jdbc-1.0.2-oss.jar inside your ' +
2828
'project directory'
2929
);
3030
}

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,31 @@ function acceptedByEnv() {
1515
return acceptStatus;
1616
}
1717

18+
/**
19+
* In the beginning of 2025 Databricks released their open-source version of JDBC driver and encourage
20+
* all users to migrate to it as company plans to focus on improving and evolving it over legacy simba driver.
21+
* More info about OSS Driver could be found at https://docs.databricks.com/aws/en/integrations/jdbc/oss
22+
* As of March 2025 To use the Databricks JDBC Driver (OSS), the following requirements must be met:
23+
* Java Runtime Environment (JRE) 11.0 or above. CI testing is supported on JRE 11, 17, and 21.
24+
*/
1825
export async function downloadJDBCDriver(): Promise<string | null> {
1926
const driverAccepted = acceptedByEnv();
2027

2128
if (driverAccepted) {
22-
console.log('Downloading DatabricksJDBC42-2.6.29.1051');
29+
console.log('Downloading databricks-jdbc-1.0.2-oss.jar');
2330

2431
await downloadAndExtractFile(
25-
'https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.29/DatabricksJDBC42-2.6.29.1051.zip',
32+
'https://repo1.maven.org/maven2/com/databricks/databricks-jdbc/1.0.2-oss/databricks-jdbc-1.0.2-oss.jar',
2633
{
2734
showProgress: true,
2835
cwd: path.resolve(path.join(__dirname, '..', 'download')),
36+
noExtract: true,
2937
}
3038
);
3139

32-
console.log('Release notes: https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.29/docs/release-notes.txt');
40+
console.log('Release notes: https://mvnrepository.com/artifact/com.databricks/databricks-jdbc/1.0.2-oss');
3341

34-
return path.resolve(path.join(__dirname, '..', 'download', 'DatabricksJDBC42.jar'));
42+
return path.resolve(path.join(__dirname, '..', 'download', 'databricks-jdbc-1.0.2-oss.jar'));
3543
}
3644

3745
return null;

0 commit comments

Comments
 (0)