File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ case class Lower(child: Expression) extends UnaryExpression with CaseConversionE
157157 override def toString () = s " Lower( $child) "
158158}
159159
160- /** A base class for functions that compare two strings, returning a boolean */
160+ /** A base class for functions that compare two strings, returning a boolean. */
161161abstract class StringComparison extends Expression {
162162 self : Product =>
163163
@@ -188,21 +188,21 @@ abstract class StringComparison extends Expression {
188188}
189189
190190/**
191- * A function that returns true if the string `left` contains the string `right`
191+ * A function that returns true if the string `left` contains the string `right`.
192192 */
193193case class Contains (left : Expression , right : Expression ) extends StringComparison {
194194 override def compare (l : String , r : String ) = l.contains(r)
195195}
196196
197197/**
198- * A function that returns true if the string `left` starts with the string `right`
198+ * A function that returns true if the string `left` starts with the string `right`.
199199 */
200200case class StartsWith (left : Expression , right : Expression ) extends StringComparison {
201201 def compare (l : String , r : String ) = l.startsWith(r)
202202}
203203
204204/**
205- * A function that returns true if the string `left` ends with the string `right`
205+ * A function that returns true if the string `left` ends with the string `right`.
206206 */
207207case class EndsWith (left : Expression , right : Expression ) extends StringComparison {
208208 def compare (l : String , r : String ) = l.endsWith(r)
You can’t perform that action at this time.
0 commit comments