chore: Add CompliantExpr._with_metadata#2262
Conversation
|
@dangotbanned I suspect (and have good reason to believe) that you can probably think of a better way to do this, in which case, feel free to add a commit to do so 🙏 |
Thanks for the complimentary ping @MarcoGorelli 😍 I'll take a look later today |
|
I'm just looking from my phone, apologies for the stray comment. Would it make sense to add a You can always override it if there's something unique for a given backend (e.g. |
|
Apologies for all the questions before doing any commits 😅 Wanna make sure any changes I make are preserving your intent |
- Aligns with `_with_window_function` - Avoids stepping on *future* `pl.Expr` API (cautious)
CompliantExpr._with_metadata
dangotbanned
left a comment
There was a problem hiding this comment.
LGTM, thanks @MarcoGorelli
All 3 of the LazyExpr constructors differ - so I only did the EagerExpr part of (#2262 (comment))
Will leave it to you for merging/making further tweaks 🙌
|
awesome, thanks @dangotbanned ! |
This avoid the need to have
kindas an argument inover, and also gives us a way to useExprMetadataat the compliant level in other places (e.g.group_by.agg), so we can get rid of trackingfunction_nameat the compliant levelWhat type of PR is this? (check all applicable)
Related issues
Checklist
If you have comments or can explain your changes, please do so below