Skip to content

Make upper emit Utf8View for Utf8View input#20615

Closed
kumarUjjawal wants to merge 1 commit intoapache:mainfrom
kumarUjjawal:refactor/upper_utf8view
Closed

Make upper emit Utf8View for Utf8View input#20615
kumarUjjawal wants to merge 1 commit intoapache:mainfrom
kumarUjjawal:refactor/upper_utf8view

Conversation

@kumarUjjawal
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

String UDFs should preserve string representation where feasible. upper previously accepted Utf8View input but emitted Utf8, causing an unnecessary type downgrade. This aligns repeat with the expected behavior of returning the same string type as its primary input.

What changes are included in this PR?

  • Updated upper return type inference to emit Utf8View when input is Utf8View

Are these changes tested?

Yes

Are there any user-facing changes?

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Feb 28, 2026
@kumarUjjawal
Copy link
Contributor Author

Closing this in favour of #20616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant