Skip to content
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

Closed
wants to merge 1 commit into from
Closed

[SPARK-28083][SQL][FOLLOW-UP] Fix incorrect comment for LIKE ... ESCAPE #26962

wants to merge 1 commit into from

Conversation

beliefer
Copy link
Contributor

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

@@ -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.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

Copy link
Member

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

Copy link
Member

@HyukjinKwon HyukjinKwon left a 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.

@beliefer
Copy link
Contributor Author

@HyukjinKwon OK. I get it.

@SparkQA
Copy link

SparkQA commented Dec 20, 2019

Test build #115612 has finished for PR 26962 at commit d8a68b6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@Ngone51 Ngone51 left a 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.

* escape - an character added since Spark 3.0. The default escape character is the '\'.

@srowen srowen closed this Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
7 participants