@@ -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+ */
1825export 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