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

Always use StringViewArray as output of substr #14498

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Kev1n8
Copy link
Contributor

@Kev1n8 Kev1n8 commented Feb 5, 2025

Which issue does this PR close?

Closes #12338

Rationale for this change

Generate StringViewArray whatever input type is for efficiency.

What changes are included in this PR?

  1. Behavior of substr, return type is always Utf8View.
  2. Unittest updated.
  3. Some changes in datafusion/sqllogictest/test_files/tpch/plans/q22.slt.part.

Are these changes tested?

Yes.

Are there any user-facing changes?

I'm not sure, the return type of substr is fixed to Utf8View now.

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions labels Feb 5, 2025
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.

Use StringViewArray as output of substr when input was StringArray
1 participant