Replies: 4 comments 7 replies
-
Well, it looks like there's no way to know who voted and how (https://github.com/orgs/community/discussions/17367), so I'll just start by saying +1. |
Beta Was this translation helpful? Give feedback.
-
EDIT: I didn't read the original post well enough, turns out we are mostly on the same page. I like the shorthand of
I have never liked how (in all of these, x, y and z can either be strings or more complex expressions)
|
Beta Was this translation helpful? Give feedback.
-
Oh, one other related thought: to make it a bit more ergonomic, what if we changed the API from |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to an issue so we can track it under API stability. |
Beta Was this translation helpful? Give feedback.
-
I'd like to propose the removal of filtering and projection support from
__getitem__
and retain only the ability to select single columns from a table expression.__getitem__
functionality from column expressions would be unchangedThe rationale is that the behavior of these methods is hard to predict without semantic understanding of the expressions involved in the call.
Yyou cannot know whether the resulting expression is a projection or a filter without knowing details about the expressions involved.
Here's a simple example of this:
In contrast, when you see a call to the
select
method and a call tofilter
method you know what the resulting expression is.This would need to go through a deprecation cycle with a few releases before removing it.
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions