Skip to content

Commit

Permalink
Updating Databricks driver
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Jun 18, 2024
1 parent bc36d2c commit a644e84
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
DatabaseConnector 6.3.3
=======================

Changes:

- Updated Snowflake driver to 3.16.1.

- Updated Databricks driver to 2.6.36.


DatabaseConnector 6.3.2
=======================
Expand Down
10 changes: 6 additions & 4 deletions R/Drivers.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jdbcDrivers <- new.env()
#' - RedShift: V2.1.0.9
#' - SQL Server: V9.2.0
#' - Oracle: V19.8
#' - Spark: V2.6.21
#' - Snowflake: V3.13.22
#' - Spark (Databricks): V2.6.36
#' - Snowflake: V3.16.01
#' - BigQuery: v1.3.2.1003
#'
#' @return Invisibly returns the destination if the download was successful.
Expand Down Expand Up @@ -94,7 +94,7 @@ downloadJdbcDrivers <- function(dbms, pathToDriver = Sys.getenv("DATABASECONNECT
2,redshift,redshift-jdbc42-2.1.0.20.zip,https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/2.1.0.20/
3,sql server,sqlServerV9.2.0.zip,https://ohdsi.github.io/DatabaseConnectorJars/
4,oracle,oracleV19.8.zip,https://ohdsi.github.io/DatabaseConnectorJars/
5,spark,DatabricksJDBC42-2.6.32.1054.zip,https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.32/
5,spark,DatabricksJDBC42-2.6.36.1062.zip,https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.36/
6,snowflake,snowflake-jdbc-3.16.1.jar,https://repo1.maven.org/maven2/net/snowflake/snowflake-jdbc/3.16.1/
7,bigquery,SimbaBigQueryJDBC42-1.3.2.1003.zip,https://storage.googleapis.com/simba-bq-release/jdbc/"
)
Expand All @@ -120,7 +120,9 @@ downloadJdbcDrivers <- function(dbms, pathToDriver = Sys.getenv("DATABASECONNECT
method = method
)

extractedFilename <- unzip(file.path(pathToDriver, driverSource$fileName), exdir = pathToDriver)
extractedFilename <- unzip(file.path(pathToDriver, driverSource$fileName),
exdir = pathToDriver,
junkpaths = TRUE)
unzipSuccess <- is.character(extractedFilename)

if (unzipSuccess) {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-fetchResults.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_that("Logging query times", {
skip_if_not_installed("ParallelLogger")

queryTimes <- extractQueryTimes(logFileName)
expect_gt(nrow(queryTimes), 16)
expect_gt(nrow(queryTimes), 3)
ParallelLogger::unregisterLogger("TEST_LOGGER")
unlink(logFileName)
})

0 comments on commit a644e84

Please sign in to comment.