Skip to content

Conversation

@beliefer
Copy link
Contributor

@beliefer beliefer commented Jan 4, 2021

What changes were proposed in this pull request?

Add doc for 'like any' and 'like all' operators in sql-ref-syntx-qry-select-like.cmd

Why are the changes needed?

make the usage of 'like any' and 'like all' known to more users

Does this PR introduce any user-facing change?

Yes.

Screen Shot 2021-01-06 at 21 10 38

Screen Shot 2021-01-06 at 21 11 06

Screen Shot 2021-01-06 at 21 11 20

How was this patch tested?

No tests

beliefer and others added 30 commits June 19, 2020 10:36
@beliefer
Copy link
Contributor Author

beliefer commented Jan 4, 2021

cc @wangyum

```sql
[ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | [ RLIKE | REGEXP ] regex_pattern }

[ NOT ] { LIKE predicate_quantifiers ( search_pattern [ , ... ]) }
Copy link
Member

Choose a reason for hiding this comment

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

LIKE predicate_quantifiers ( search_pattern [ , ... ]) -> LIKE quantifier ( search_pattern [ , ...])?

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

### Description

A LIKE predicate is used to search for a specific pattern.
A LIKE predicate is used to search for a specific pattern. LIKE predicate also supports multiple patterns with predicate quantifiers include `SOME`, `ANY`, `ALL`.
Copy link
Member

Choose a reason for hiding this comment

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

`SOME`, `ANY`, `ALL`. -> `ANY`, `SOME` and `ALL`.?

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

@github-actions github-actions bot added the DOCS label Jan 4, 2021
@SparkQA
Copy link

SparkQA commented Jan 5, 2021

Test build #133612 has finished for PR 31008 at commit 3d0826e.

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

@SparkQA
Copy link

SparkQA commented Jan 5, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38201/

@SparkQA
Copy link

SparkQA commented Jan 5, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38201/

@SparkQA
Copy link

SparkQA commented Jan 5, 2021

Test build #133640 has finished for PR 31008 at commit d5b0e48.

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

```sql
[ NOT ] { LIKE search_pattern [ ESCAPE esc_char ] | [ RLIKE | REGEXP ] regex_pattern }

[ NOT ] { LIKE quantifiers ( search_pattern [ , ... ]) }
Copy link
Member

Choose a reason for hiding this comment

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

quantifiers -> [ ANY | SOME | ALL ]?

Copy link
Contributor Author

@beliefer beliefer Jan 5, 2021

Choose a reason for hiding this comment

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

We need to describle quantifiers in detail. So I think quantifiers is better.

@maropu maropu changed the title [SPARK-33977][SQL] Add doc for "'like any' and 'like all' operators" [SPARK-33977][SQL][DOCS] Add doc for "'like any' and 'like all' operators" Jan 5, 2021
@maropu
Copy link
Member

maropu commented Jan 5, 2021

For reviews, could you put the screenshot of this doc update in Does this PR introduce any user-facing change??

### Description

A LIKE predicate is used to search for a specific pattern.
A LIKE predicate is used to search for a specific pattern. LIKE predicate also supports multiple patterns with quantifiers include `ANY`, `SOME` and `ALL`.
Copy link
Member

Choose a reason for hiding this comment

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

nit: LIKE predicate -> This clause

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about This predicate?

Copy link
Member

Choose a reason for hiding this comment

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

sgtm

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

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Test build #133704 has finished for PR 31008 at commit 524759a.

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

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38292/

@SparkQA
Copy link

SparkQA commented Jan 6, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38292/

@maropu
Copy link
Member

maropu commented Jan 6, 2021

Thanks! Merged to master/branch-3.1.

@maropu maropu closed this Jan 6, 2021
maropu pushed a commit that referenced this pull request Jan 6, 2021
…tors"

### What changes were proposed in this pull request?
Add doc for 'like any' and 'like all' operators in sql-ref-syntx-qry-select-like.cmd

### Why are the changes needed?
make the usage of 'like any' and 'like all' known to more users

### Does this PR introduce _any_ user-facing change?
Yes.

<img width="687" alt="Screen Shot 2021-01-06 at 21 10 38" src="https://user-images.githubusercontent.com/692303/103767385-dc1ffb80-5063-11eb-9529-89479531425f.png">
<img width="495" alt="Screen Shot 2021-01-06 at 21 11 06" src="https://user-images.githubusercontent.com/692303/103767391-dde9bf00-5063-11eb-82ce-63bdd11593a1.png">
<img width="406" alt="Screen Shot 2021-01-06 at 21 11 20" src="https://user-images.githubusercontent.com/692303/103767396-df1aec00-5063-11eb-8e81-a192e6c72431.png">

### How was this patch tested?
No tests

Closes #31008 from beliefer/SPARK-33977.

Lead-authored-by: gengjiaan <[email protected]>
Co-authored-by: beliefer <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
maropu pushed a commit that referenced this pull request Jan 6, 2021
…tors"

### What changes were proposed in this pull request?
Add doc for 'like any' and 'like all' operators in sql-ref-syntx-qry-select-like.cmd

### Why are the changes needed?
make the usage of 'like any' and 'like all' known to more users

### Does this PR introduce _any_ user-facing change?
Yes.

<img width="687" alt="Screen Shot 2021-01-06 at 21 10 38" src="https://user-images.githubusercontent.com/692303/103767385-dc1ffb80-5063-11eb-9529-89479531425f.png">
<img width="495" alt="Screen Shot 2021-01-06 at 21 11 06" src="https://user-images.githubusercontent.com/692303/103767391-dde9bf00-5063-11eb-82ce-63bdd11593a1.png">
<img width="406" alt="Screen Shot 2021-01-06 at 21 11 20" src="https://user-images.githubusercontent.com/692303/103767396-df1aec00-5063-11eb-8e81-a192e6c72431.png">

### How was this patch tested?
No tests

Closes #31008 from beliefer/SPARK-33977.

Lead-authored-by: gengjiaan <[email protected]>
Co-authored-by: beliefer <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
@beliefer
Copy link
Contributor Author

beliefer commented Jan 6, 2021

@maropu Thanks for your work! @wangyum @srowen Thanks for your review.
Specially, Thanks for your screen shot @maropu

xuanyuanking pushed a commit to xuanyuanking/spark that referenced this pull request Sep 29, 2021
…tors"

Add doc for 'like any' and 'like all' operators in sql-ref-syntx-qry-select-like.cmd

make the usage of 'like any' and 'like all' known to more users

Yes.

<img width="687" alt="Screen Shot 2021-01-06 at 21 10 38" src="https://user-images.githubusercontent.com/692303/103767385-dc1ffb80-5063-11eb-9529-89479531425f.png">
<img width="495" alt="Screen Shot 2021-01-06 at 21 11 06" src="https://user-images.githubusercontent.com/692303/103767391-dde9bf00-5063-11eb-82ce-63bdd11593a1.png">
<img width="406" alt="Screen Shot 2021-01-06 at 21 11 20" src="https://user-images.githubusercontent.com/692303/103767396-df1aec00-5063-11eb-8e81-a192e6c72431.png">

No tests

Closes apache#31008 from beliefer/SPARK-33977.

Lead-authored-by: gengjiaan <[email protected]>
Co-authored-by: beliefer <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants