pan3793 commented on code in PR #52819:
URL: https://github.com/apache/spark/pull/52819#discussion_r2482232789


##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectDatabaseMetaData.scala:
##########
@@ -275,6 +279,9 @@ class SparkConnectDatabaseMetaData(conn: 
SparkConnectConnection) extends Databas
 
   override def dataDefinitionIgnoredInTransactions: Boolean = false
 
+  private def isNullOrWildcard(pattern: String): Boolean =
+    pattern == null || pattern == "%"

Review Comment:
   This is used to test whether `fooPattern` matches ALL
   
   
https://docs.oracle.com/en/java/javase/17/docs/api/java.sql/java/sql/DatabaseMetaData.html
   
   > Some DatabaseMetaData methods take arguments that are String patterns. 
These arguments all have names such as fooPattern. Within a pattern String, "%" 
means match any substring of 0 or more characters, and "_" means match any one 
character. Only metadata entries matching the search pattern are returned. If a 
search pattern argument is set to null, that argument's criterion will be 
dropped from the search.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to