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

fix(rust): range/ranges output name should follow lhs rule #13369

Merged
merged 3 commits into from Jan 2, 2024

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Jan 2, 2024

This fixes #13314.

Maybe one could argue that It's weird that pl.int_ranges(5, 0, -1)'s name is literal. But we prefer to follow the same leftmost rule as the other expressions.

@github-actions github-actions bot added fix Bug fix rust Related to Rust Polars labels Jan 2, 2024
assert result.collect().schema == expected_schema


def test_time_range_no_alias_schema_9037() -> None:
Copy link
Collaborator Author

@reswqa reswqa Jan 2, 2024

Choose a reason for hiding this comment

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

This test is exactly same as test_time_range_schema. So remove it.

@reswqa reswqa marked this pull request as ready for review January 2, 2024 10:01
@ritchie46
Copy link
Member

At least the lhs rule is predictable. Rename your expressions! :)

@ritchie46 ritchie46 merged commit e2ef82d into pola-rs:main Jan 2, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

int_range/ date_range don't follow left hand side rule.
2 participants