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

Support ends_with function #2746

Merged
merged 5 commits into from
Jan 14, 2020
Merged

Support ends_with function #2746

merged 5 commits into from
Jan 14, 2020

Conversation

frwrdt
Copy link
Contributor

@frwrdt frwrdt commented Jan 13, 2020

for #2599
add sql function 'ends_with' and documents

@@ -79,6 +79,13 @@ StringVal StringFunctions::right(
return substring(context, str, IntVal(pos), len);
}

IntVal StringFunctions::ends_with(
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. should check if input str and suffix is null.
  2. return value is a BoolVal?
  3. better add a unit test for this new added function
    You can reference here

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

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

LGTM

@imay imay merged commit f071d5a into apache:master Jan 14, 2020
@chaoyli chaoyli mentioned this pull request Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants