Skip to content

Commit

Permalink
Add support for Databricks
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jan 27, 2025
1 parent 0cca8fa commit 93f61e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/nf-sqldb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dependencies {
api 'org.postgresql:postgresql:42.7.4'
api 'org.xerial:sqlite-jdbc:3.47.0.0'
api 'org.duckdb:duckdb_jdbc:0.10.2'
api('com.databricks:databricks-jdbc:2.7.1') //{ exclude group: 'commons-logging' }


// JDBC driver setup for AWS Athena - the 3rd party JAR are being downloaded and setup as gradle tasks below.
Expand Down
1 change: 1 addition & 0 deletions plugins/nf-sqldb/src/main/nextflow/sql/SqlPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ class SqlPlugin extends BasePlugin {

SqlPlugin(PluginWrapper wrapper) {
super(wrapper)
System.setProperty("com.databricks.jdbc.loggerImpl","SLF4JLOGGER")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class DriverRegistry {
drivers.'postgresql'= 'org.postgresql.Driver'
drivers.'duckdb'= 'org.duckdb.DuckDBDriver'
drivers.'awsathena'= 'com.simba.athena.jdbc.Driver'
drivers.'databricks'= 'com.databricks.client.jdbc.Driver'
}

void addDriver(String name, String driver){
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ plugins {
rootProject.name = 'nf-sqldb'
include 'plugins'
include('plugins:nf-sqldb')

includeBuild('../nextflow')

0 comments on commit 93f61e8

Please sign in to comment.