eric-wang-1990 commented on code in PR #2921:
URL: https://github.com/apache/arrow-adbc/pull/2921#discussion_r2128073383


##########
csharp/src/Drivers/Databricks/DatabricksConnection.cs:
##########
@@ -168,6 +168,12 @@ private void ValidateProperties()
             Properties.TryGetValue(AdbcOptions.Connection.CurrentCatalog, out 
defaultCatalog);
             Properties.TryGetValue(AdbcOptions.Connection.CurrentDbSchema, out 
defaultSchema);
 
+            // SPARK is a special catalog name - rely on server to return a 
default catalog if there is one
+            if (defaultCatalog.Equals("SPARK", 
StringComparison.OrdinalIgnoreCase))

Review Comment:
   Can you reuse this: 
https://github.com/apache/arrow-adbc/blob/9bda49a42635d5fe78373fc0b2cdc6c47947a3c0/csharp/src/Drivers/Databricks/DatabricksStatement.cs#L191



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to