Skip to content

Test for string / numeric coercion #13606

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

Closed
wants to merge 1 commit into from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Nov 29, 2024

Which issue does this PR close?

Rationale for this change

While testing #13366 I found there are still some gaps with StringView:

What changes are included in this PR?

Add tests for string coercsion to integer. They currently fail as arrow-rs doesn't suport int --> StringView casting at the moment

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Nov 29, 2024
@alamb alamb marked this pull request as draft November 30, 2024 12:26
# --------------------------------------

query BB
select ascii_1 = 1 as col1, ascii_1 = 1 as col2 from test_basic_operator;
Copy link
Member

Choose a reason for hiding this comment

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

why is ascii_1 = 1 projected twice?

(same for ascii_1 <> 1 case below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was a mistake -- I meant to do the comparison the other way

@Omega359
Copy link
Contributor

fyi apache/arrow-rs#6714 was resolved recently.

@alamb
Copy link
Contributor Author

alamb commented Dec 15, 2024

fyi apache/arrow-rs#6714 was resolved recently.

Awesome -- thank you

I have it on my list to double check if we need any additional work (like timestamp --> Utf8View)

I just haven't found the time yet to write the corresponding tests to verify in DataFusion. Hoping to be able to do so this week

@alamb
Copy link
Contributor Author

alamb commented Jan 30, 2025

@alamb alamb closed this Jan 30, 2025
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.

3 participants