Skip to content

Commit 93f61e8

Browse files
committed
Add support for Databricks
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 0cca8fa commit 93f61e8

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

plugins/nf-sqldb/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ dependencies {
6666
api 'org.postgresql:postgresql:42.7.4'
6767
api 'org.xerial:sqlite-jdbc:3.47.0.0'
6868
api 'org.duckdb:duckdb_jdbc:0.10.2'
69+
api('com.databricks:databricks-jdbc:2.7.1') //{ exclude group: 'commons-logging' }
6970

7071

7172
// JDBC driver setup for AWS Athena - the 3rd party JAR are being downloaded and setup as gradle tasks below.

plugins/nf-sqldb/src/main/nextflow/sql/SqlPlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ class SqlPlugin extends BasePlugin {
3131

3232
SqlPlugin(PluginWrapper wrapper) {
3333
super(wrapper)
34+
System.setProperty("com.databricks.jdbc.loggerImpl","SLF4JLOGGER")
3435
}
3536
}

plugins/nf-sqldb/src/main/nextflow/sql/config/DriverRegistry.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class DriverRegistry {
2525
drivers.'postgresql'= 'org.postgresql.Driver'
2626
drivers.'duckdb'= 'org.duckdb.DuckDBDriver'
2727
drivers.'awsathena'= 'com.simba.athena.jdbc.Driver'
28+
drivers.'databricks'= 'com.databricks.client.jdbc.Driver'
2829
}
2930

3031
void addDriver(String name, String driver){

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ plugins {
2323
rootProject.name = 'nf-sqldb'
2424
include 'plugins'
2525
include('plugins:nf-sqldb')
26-
26+
includeBuild('../nextflow')

0 commit comments

Comments
 (0)