Skip to content

Commit

Permalink
add sslmode for postgress DE-6429
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtBurns7 committed Aug 7, 2024
1 parent 6f1b8a3 commit a9e1a85
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ class JDBCImport(
val schema = importConfig.schema

val connectionUrl = s"jdbc:$dbType://$host:$port/$database"

connectionUrl
if (dbType == Constants.POSTGRESQL) {
s"$connectionUrl?sslmode=disable"
} else {
connectionUrl
}
}

private lazy val sourceDataframe = readJDBCSourceInParallel()
Expand Down

0 comments on commit a9e1a85

Please sign in to comment.