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

Add native stringview support for LTRIM & RTRIM #11948

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

Kev1n8
Copy link
Contributor

@Kev1n8 Kev1n8 commented Aug 12, 2024

Which issue does this PR close?

Closes #11856 and closes #11916

Rationale for this change

Follow the changes in #11920

What changes are included in this PR?

Added function signatures of ltrim and rtrim to support stringview. And some relavant tests

Are these changes tested?

yes

Are there any user-facing changes?

no

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Aug 12, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @Kev1n8 -- this looks like a nice improvement to me

I left a few minor suggestions but I think they could also be done as a follow on PR if you prefer

datafusion/functions/src/string/ltrim.rs Outdated Show resolved Hide resolved
datafusion/functions/src/string/ltrim.rs Outdated Show resolved Hide resolved
datafusion/functions/src/string/rtrim.rs Outdated Show resolved Hide resolved
datafusion/functions/src/string/rtrim.rs Outdated Show resolved Hide resolved
@Kev1n8
Copy link
Contributor Author

Kev1n8 commented Aug 13, 2024

Thanks for the suggestions!

@alamb
Copy link
Contributor

alamb commented Aug 13, 2024

Thanks again @Kev1n8

@alamb alamb merged commit e8ac93a into apache:main Aug 13, 2024
24 checks passed
@Kev1n8 Kev1n8 deleted the add-native-stringview-support-for-ltrim branch August 14, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update RTRIM scalar function to support Utf8View Update LTRIM scalar function to support Utf8View
2 participants