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

use safe cast in propagate_constraints #11297

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Conversation

Lordworms
Copy link
Contributor

Which issue does this PR close?

Closes #11252

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jul 6, 2024
@Lordworms
Copy link
Contributor Author

Lordworms commented Jul 6, 2024

seems like an arrow-rs related problem, but we can use safe cast to avoid it temporarily

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.

Thank you @Lordworms

I have one small suggestion for additional test coverage but I don't think it is required

query I
select * from t0 where v0>1e100;
----

Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest a test that also shows the filter passing (I wasn't sure if the whole thing was turned into NULL). But I double checked and this query works on this branch:

Suggested change
query I
select * from t0 where v0<1e100;
----
1
2
3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add that

@alamb alamb merged commit 45599ce into apache:main Jul 7, 2024
23 checks passed
@alamb
Copy link
Contributor

alamb commented Jul 7, 2024

Thanks @Lordworms 🙏

findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* use safe cast in propagate_constraints

* add test
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.

Error evaluating clause where COL_BIGINT < 1e100 (Found by SQLancer-NoREC)
2 participants