Skip to content

Conversation

@Omega359
Copy link
Contributor

@Omega359 Omega359 commented Nov 20, 2024

Which issue does this PR close?

Rationale for this change

Bug fix for md5 not working as expected with largeutf8 input

What changes are included in this PR?

Code, tests.

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 Nov 20, 2024
@Omega359 Omega359 marked this pull request as ready for review November 20, 2024 19:06
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 @Omega359 -- this looks like a good improvement to me

use DataType::*;
Ok(match &arg_types[0] {
LargeUtf8 | LargeBinary => LargeUtf8,
LargeUtf8 | LargeBinary => Utf8,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe as a follow on it should really be LargeUtf8 but then we would have to change the function I suppose

@alamb alamb merged commit c3e1173 into apache:main Nov 20, 2024
26 checks passed
@alamb
Copy link
Contributor

alamb commented Nov 20, 2024

Since this is a small code / bug fix merging it in now

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.

Error running crypto functions on Dictionary arrays such as md5

2 participants