HyukjinKwon commented on a change in pull request #25001: [SPARK-28083][SQL] 
Support LIKE ... ESCAPE syntax
URL: https://github.com/apache/spark/pull/25001#discussion_r316954369
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/Column.scala
 ##########
 @@ -822,6 +822,16 @@ class Column(val expr: Expression) extends Logging {
    */
   def like(literal: String): Column = withExpr { Like(expr, lit(literal).expr) 
}
 
+  /**
+   * SQL like expression. Returns a boolean column based on a SQL LIKE ESCAPE 
match.
+   *
+   * @group expr_ops
+   * @since 3.0.0
+   */
+  def like(literal: String, escapeStr: String): Column = withExpr {
+    Like(expr, lit(literal).expr, Option(escapeStr))
+  }
+
 
 Review comment:
   Let's don't add it for now. I think we need this in SQL side only.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to