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 Utf8View to TypeCategory::Unknown #13350

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

jayzhan211
Copy link
Contributor

@jayzhan211 jayzhan211 commented Nov 11, 2024

Which issue does this PR close?

Closes #13347 #13358 .

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@jayzhan211 jayzhan211 marked this pull request as ready for review November 11, 2024 03:27
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Nov 11, 2024
DataType::Utf8
| DataType::LargeUtf8
| DataType::Utf8View
| DataType::Null
Copy link
Member

Choose a reason for hiding this comment

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

Adding Utf8View LGTM

but the comment above "String literal is possible to cast to many other types like numeric or datetime," is worrisome. I don't think it's true.

Would it make sense to update that comment?

@github-actions github-actions bot added documentation Improvements or additions to documentation sql SQL Planner development-process Related to development process of DataFusion logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate common Related to common crate proto Related to proto crate functions labels Nov 12, 2024
Signed-off-by: jayzhan211 <[email protected]>
Signed-off-by: jayzhan211 <[email protected]>
Signed-off-by: Jay Zhan <[email protected]>
@jayzhan211 jayzhan211 force-pushed the fix-string-union-resolution branch from 1d7f487 to 2ae09b3 Compare November 12, 2024 03:09
@github-actions github-actions bot removed documentation Improvements or additions to documentation sql SQL Planner development-process Related to development process of DataFusion logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate common Related to common crate proto Related to proto crate functions labels Nov 12, 2024
@jayzhan211
Copy link
Contributor Author

@Omega359 ptal

@Omega359
Copy link
Contributor

I had to look up that acronym ... I'm getting old :/

Fix and test looks good to me. I actually encountered this same issue with #13383 and confirmed that the change fixes the issue there too (same error as #13348)

@jayzhan211 jayzhan211 requested a review from Weijun-H November 13, 2024 01:24
Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @jayzhan211

@jayzhan211 jayzhan211 merged commit ccf6258 into apache:main Nov 13, 2024
26 checks passed
@jayzhan211 jayzhan211 deleted the fix-string-union-resolution branch November 13, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coalesce function fails in planning if any argument is Utf8View type
4 participants