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: spark like .list namespace and lazyframe .explode #1887

Merged
merged 3 commits into from
Jan 30, 2025

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

@FBruzzesi FBruzzesi added enhancement New feature or request pyspark Issue is related to pyspark backend labels Jan 28, 2025
Comment on lines 366 to 370
msg = (
"Exploding on multiple columns is not supported with SparkLike backend since "
"we cannot guarantee that the exploded columns have matching element counts."
)
raise NotImplementedError(msg)
Copy link
Member Author

Choose a reason for hiding this comment

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

In a way... this is so sad since I had a great way of doing it! But cannot verify that the element counts are same without triggering a collect

Copy link
Collaborator

@EdAbati EdAbati left a comment

Choose a reason for hiding this comment

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

Thaaank you for this! Just added a couple of comments/questions

narwhals/_spark_like/dataframe.py Outdated Show resolved Hide resolved
narwhals/_spark_like/dataframe.py Outdated Show resolved Hide resolved
narwhals/_spark_like/dataframe.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@EdAbati EdAbati left a comment

Choose a reason for hiding this comment

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

This looks πŸ‘ŒπŸ‘Œ to me

@FBruzzesi FBruzzesi changed the title feat: spark like list namespace and explode feat: spark like .list namespace and lazyframe .explode Jan 30, 2025
@FBruzzesi FBruzzesi changed the title feat: spark like .list namespace and lazyframe .explode feat: spark like .list namespace and lazyframe .explode Jan 30, 2025
@FBruzzesi FBruzzesi merged commit 83c1b2a into main Jan 30, 2025
25 checks passed
@FBruzzesi FBruzzesi deleted the feat/spark-like-list-namespace branch January 30, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pyspark Issue is related to pyspark backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants