-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Kernel][Predicate] - WIP - Add support for STARTS_WITH expression #3095
[Kernel][Predicate] - WIP - Add support for STARTS_WITH expression #3095
Conversation
Signed-off-by: Krishnan Paranji Ravi <[email protected]>
Signed-off-by: Krishnan Paranji Ravi <[email protected]>
Signed-off-by: Krishnan Paranji Ravi <[email protected]>
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.
Thank you @krishnanravi for the PR.
Wondering if we can directly support LIKE
. STARTS_WITH
is a special form of LIKE
.
E.g. STARTS_WITH(column, 'city')
is equals to column LIKE 'city%'
* <li>Name: <code>STARTS_WITH</code> | ||
* <ul> | ||
* <li>SQL semantic: <code>expr STARTS WITH expr</code></li> | ||
* <li>Since version: 3.2.0</li> |
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.
Change it to 3.3.0 (next release)
* Definition: | ||
* <p><ul> | ||
* <li>{@code expr1} STARTS WITH {@code expr2} on two inputs.</li> | ||
* <li>Requires both left and right input expressions of type {@link Predicate}.</li> |
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.
left and right need to be strings, right?
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.
yes. updated.
* Note that matches are case insensitive.</li> | ||
* </ul> | ||
* | ||
* @since 3.0.0 |
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.
change the version to 3.3.0
Signed-off-by: Krishnan Paranji Ravi <[email protected]>
@vkorukanti yes makes sense to me. are you suggesting we replace STARTS_WITH with LIKE support instead, and as part of this change/PR? |
Yep, lets add the |
@vkorukanti assume we will need support for a custom escape char in input. |
|
Which Delta project/connector is this regarding?
Description
addresses #2539
How was this patch tested?
added unit tests
Does this PR introduce any user-facing changes?
No