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


##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectDatabaseMetaData.scala:
##########
@@ -97,8 +100,7 @@ class SparkConnectDatabaseMetaData(conn: 
SparkConnectConnection) extends Databas
   override def getTimeDateFunctions: String =
     throw new SQLFeatureNotSupportedException
 
-  override def getSearchStringEscape: String =
-    throw new SQLFeatureNotSupportedException
+  override def getSearchStringEscape: String = "\\"

Review Comment:
   Spark SQL uses backslash as the default escape char for `LIKE` expression, 
it also supports custom escape char
   
   https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-like.html
   
   > ```
   > [ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | [ RLIKE | REGEXP ] 
regex_pattern }
   > ...
   > ```
   > ...
   > - esc_char
   >   Specifies the escape character. The default escape character is \.



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