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

feat: arrow join methods #558

Merged
merged 5 commits into from
Jul 20, 2024
Merged

feat: arrow join methods #558

merged 5 commits into from
Jul 20, 2024

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

Implements various join types for arrow and fill_null (as it is used in one test)

I am mostly trusting our tests at this point :)

@github-actions github-actions bot added the enhancement New feature or request label Jul 19, 2024
result = df.join(df, how="cross") # type: ignore[arg-type]

expected = {"a": [1, 1, 1, 3, 3, 3, 2, 2, 2], "a_right": [1, 3, 2, 1, 3, 2, 1, 3, 2]}
result = df.join(df, how="cross").sort("a", "a_right") # type: ignore[arg-type]
Copy link
Member Author

Choose a reason for hiding this comment

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

Without sorting, the result is flaky as order is not guaranteed

@MarcoGorelli
Copy link
Member

amazing!

vega/altair#3487 should fix the CI failure

@binste
Copy link

binste commented Jul 20, 2024

amazing!

vega/altair#3487 should fix the CI failure

FYI, that PR just got merged

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

not long til we move "pyarrow" into the "full api support" category, exciting πŸŽ‰

Comment on lines +235 to +236
self.with_columns(**{key_token: plx.lit(0, None)})._native_dataframe.join(
other.with_columns(**{key_token: plx.lit(0, None)})._native_dataframe,
Copy link
Member

Choose a reason for hiding this comment

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

truly wild

and i love it

@MarcoGorelli MarcoGorelli merged commit be4ecde into main Jul 20, 2024
23 checks passed
@FBruzzesi FBruzzesi deleted the feat/pyarrow-join-types branch July 21, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants