-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-28083][SQL][FOLLOW-UP] Fix incorrect comment for LIKE ... ESCAPE #26962
Conversation
@@ -38,7 +38,7 @@ object StringUtils extends Logging { | |||
* throw an [[AnalysisException]]. | |||
* | |||
* @param pattern the SQL pattern to convert | |||
* @param escapeChar the escape string contains one character. | |||
* @param escapeChar the escape character. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't an exposed API and rather a nit. Usually such followups or PRs are discouraged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah "the escape character as a one-character string" would be a little more accurate but w/e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine since the PR is already open but let's avoid to open a PR to fix one or a couple of trivial nits.
@HyukjinKwon OK. I get it. |
Test build #115612 has finished for PR 26962 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, can you also fix this? I think it should be a character
rather than an character
.
spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/regexpExpressions.scala
Line 92 in 187f3c1
* escape - an character added since Spark 3.0. The default escape character is the '\'. |
What changes were proposed in this pull request?
This PR is a follow-up to #25001
The comment of StringUtils.escapeLikeRegex has one mistake.
Why are the changes needed?
Comment mistake.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Exists UT