Skip to content

fix: encode should work with non-UTF-8 binaries - #14087

Merged
alamb merged 2 commits into
apache:mainfrom
mesejo:fix/encode-cast
Jan 16, 2025
Merged

fix: encode should work with non-UTF-8 binaries#14087
alamb merged 2 commits into
apache:mainfrom
mesejo:fix/encode-cast

Conversation

@mesejo

@mesejo mesejo commented Jan 11, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #14055.

Rationale for this change

N/A

What changes are included in this PR?

N/A

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jan 11, 2025
@mesejo mesejo changed the title fix: fix: encode should work with non-UTF-8 binaries Jan 11, 2025
@mesejo
mesejo marked this pull request as ready for review January 11, 2025 15:56
Comment thread datafusion/functions/src/encoding/inner.rs
@Omega359

Copy link
Copy Markdown
Contributor

LGTM, thanks!

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @mesejo and @Omega359

@alamb
alamb merged commit 5fa8b3b into apache:main Jan 16, 2025
@alamb

alamb commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

🚀

mwylde pushed a commit to ArroyoSystems/arrow-datafusion that referenced this pull request May 9, 2025
* fix: encode function should work with strings and binary

closes apache#14055

* chore: address comments, add test
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.

encode(..., "hex") errors on non-UTF-8 binaries since Datafusion v43

3 participants