Skip to content

Commit a93c4b7

Browse files
authored
Skip SEA compatibility check if null or empty DBSQL version is returned by workspace (#604)
* init * fmt
1 parent 41e5cc4 commit a93c4b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/databricks/jdbc/common/util/DriverUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ static void ensureUpdatedDBSQLVersionInUse(IDatabricksConnection connection)
104104
return;
105105
}
106106
String dbsqlVersion = getDBSQLVersionCached(connection);
107+
if (dbsqlVersion == null || dbsqlVersion == "") {
108+
// If the DBSQL version is not available, we cannot determine if the driver supports SEA.
109+
// Proceeding with the connection.
110+
return;
111+
}
107112
if (!doesDriverSupportSEA(dbsqlVersion)) {
108113
String errorMessage =
109114
String.format(

0 commit comments

Comments
 (0)