@@ -84,16 +84,12 @@ abstract class StringRegexExpression extends BinaryExpression
84
84
Arguments:
85
85
* str - a string expression
86
86
* pattern - a string expression. The pattern is a string which is matched literally, with
87
- exception to the following special symbols:
88
-
89
- _ matches any one character in the input (similar to . in posix regular expressions)
90
-
87
+ exception to the following special symbols:<br><br>
88
+ _ matches any one character in the input (similar to . in posix regular expressions)\
91
89
% matches zero or more characters in the input (similar to .* in posix regular
92
- expressions)
93
-
90
+ expressions)<br><br>
94
91
Since Spark 2.0, string literals are unescaped in our SQL parser. For example, in order
95
- to match "\abc", the pattern should be "\\ abc".
96
-
92
+ to match "\abc", the pattern should be "\\ abc".<br><br>
97
93
When SQL config 'spark.sql.parser.escapedStringLiterals' is enabled, it falls back
98
94
to Spark 1.6 behavior regarding string literal parsing. For example, if the config is
99
95
enabled, the pattern to match "\abc" should be "\abc".
@@ -189,7 +185,7 @@ case class Like(left: Expression, right: Expression, escapeChar: Char)
189
185
copy(left = newLeft, right = newRight)
190
186
}
191
187
192
- // scalastyle:off line.contains.tab
188
+ // scalastyle:off line.contains.tab line.size.limit
193
189
/**
194
190
* Simple RegEx case-insensitive pattern matching function
195
191
*/
@@ -200,16 +196,12 @@ case class Like(left: Expression, right: Expression, escapeChar: Char)
200
196
Arguments:
201
197
* str - a string expression
202
198
* pattern - a string expression. The pattern is a string which is matched literally and
203
- case-insensitively, with exception to the following special symbols:
204
-
205
- _ matches any one character in the input (similar to . in posix regular expressions)
206
-
199
+ case-insensitively, with exception to the following special symbols:<br><br>
200
+ _ matches any one character in the input (similar to . in posix regular expressions)<br><br>
207
201
% matches zero or more characters in the input (similar to .* in posix regular
208
- expressions)
209
-
202
+ expressions)<br><br>
210
203
Since Spark 2.0, string literals are unescaped in our SQL parser. For example, in order
211
- to match "\abc", the pattern should be "\\ abc".
212
-
204
+ to match "\abc", the pattern should be "\\ abc".<br><br>
213
205
When SQL config 'spark.sql.parser.escapedStringLiterals' is enabled, it falls back
214
206
to Spark 1.6 behavior regarding string literal parsing. For example, if the config is
215
207
enabled, the pattern to match "\abc" should be "\abc".
@@ -237,7 +229,7 @@ case class Like(left: Expression, right: Expression, escapeChar: Char)
237
229
""" ,
238
230
since = " 3.3.0" ,
239
231
group = " predicate_funcs" )
240
- // scalastyle:on line.contains.tab
232
+ // scalastyle:on line.contains.tab line.size.limit
241
233
case class ILike (
242
234
left : Expression ,
243
235
right : Expression ,
@@ -574,12 +566,10 @@ case class StringSplit(str: Expression, regex: Expression, limit: Expression)
574
566
Arguments:
575
567
* str - a string expression to search for a regular expression pattern match.
576
568
* regexp - a string representing a regular expression. The regex string should be a
577
- Java regular expression.
578
-
569
+ Java regular expression.<br><br>
579
570
Since Spark 2.0, string literals (including regex patterns) are unescaped in our SQL
580
571
parser. For example, to match "\abc", a regular expression for `regexp` can be
581
- "^\\ abc$".
582
-
572
+ "^\\ abc$".<br><br>
583
573
There is a SQL config 'spark.sql.parser.escapedStringLiterals' that can be used to
584
574
fallback to the Spark 1.6 behavior regarding string literal parsing. For example,
585
575
if the config is enabled, the `regexp` that can match "\abc" is "^\abc$".
@@ -783,12 +773,10 @@ abstract class RegExpExtractBase
783
773
Arguments:
784
774
* str - a string expression.
785
775
* regexp - a string representing a regular expression. The regex string should be a
786
- Java regular expression.
787
-
776
+ Java regular expression.<br><br>
788
777
Since Spark 2.0, string literals (including regex patterns) are unescaped in our SQL
789
778
parser. For example, to match "\abc", a regular expression for `regexp` can be
790
- "^\\ abc$".
791
-
779
+ "^\\ abc$".<br><br>
792
780
There is a SQL config 'spark.sql.parser.escapedStringLiterals' that can be used to
793
781
fallback to the Spark 1.6 behavior regarding string literal parsing. For example,
794
782
if the config is enabled, the `regexp` that can match "\abc" is "^\abc$".
@@ -888,12 +876,10 @@ case class RegExpExtract(subject: Expression, regexp: Expression, idx: Expressio
888
876
Arguments:
889
877
* str - a string expression.
890
878
* regexp - a string representing a regular expression. The regex string should be a
891
- Java regular expression.
892
-
879
+ Java regular expression.<br><br>
893
880
Since Spark 2.0, string literals (including regex patterns) are unescaped in our SQL
894
881
parser. For example, to match "\abc", a regular expression for `regexp` can be
895
- "^\\ abc$".
896
-
882
+ "^\\ abc$".<br><br>
897
883
There is a SQL config 'spark.sql.parser.escapedStringLiterals' that can be used to
898
884
fallback to the Spark 1.6 behavior regarding string literal parsing. For example,
899
885
if the config is enabled, the `regexp` that can match "\abc" is "^\abc$".
0 commit comments