Skip to content

Add tests for simplification and coercion of SessionContext::create_physical_expr #15034

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 5, 2025

Which issue does this PR close?

Rationale for this change

We are trying to make predicates like `int_col = '1234' faster in delta.rs. Let's add a test showing what is going on

What changes are included in this PR?

Add tests for #14987

Are these changes tested?

yes

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Mar 5, 2025
create_expr_test(col("i").eq(lit("202410")), "CAST(i@1 AS Utf8) = 202410");
create_expr_test(lit("202410").eq(col("i")), "202410 = CAST(i@1 AS Utf8)");
// however, when simplified the casts on i should removed
create_simplified_expr_test(col("i").eq(lit("202410")), "CAST(i@1 AS Utf8) = 202410");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line should change when #14944 is resolved

@alamb alamb force-pushed the alamb/test_coercion_projection branch from 7db17a4 to 30f73a4 Compare March 5, 2025 17:21
@alamb alamb marked this pull request as ready for review March 5, 2025 17:56
@alamb alamb requested a review from jayzhan211 March 5, 2025 18:21
Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

👍🏻

@jayzhan211 jayzhan211 merged commit 0f24c61 into apache:main Mar 11, 2025
24 checks passed
@jayzhan211
Copy link
Contributor

Thanks @alamb

@alamb alamb deleted the alamb/test_coercion_projection branch March 11, 2025 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants