-
Notifications
You must be signed in to change notification settings - Fork 608
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(api): add TableUnnest
operation to support cross-join unnest semantics as well as offset
#9423
Conversation
a5ada45
to
ff89731
Compare
ceddad0
to
dc0460f
Compare
ede6499
to
85360c8
Compare
Ok, I've started going down the rabbit hole of supporting this on as many of our backends that support arrays as possible. |
3a271da
to
7aed2e7
Compare
7aed2e7
to
6a8ab90
Compare
["y", lambda t: t.y, ibis._.y], | ||
ids=["string", "lambda", "deferred"], | ||
) | ||
def test_table_unnest(backend, colspec): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious if table.unnest
works with doubly nested (array<struct<array<>>
) fields? If so, could you add a test for that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a test case in 971b005
(#9423). Let me know whether it's sufficient.
692371b
to
d412da0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6 SQL backends, 6 slightly different (or just plain gnarly) SQL implementations.
Yay standards!
Anyway, this looks good to me -- really nice docstring for Table.unnest
d412da0
to
268299b
Compare
Rebasing, will merge on green. |
…emantics as well as `offset`
268299b
to
ee0280c
Compare
Clouds are good:
|
Would love to get feedback from folks on the API especially @tswast. The new test is likely to fail on many backends. Looking for a bit of feedback before beefing up the test suite.
Closes #7781.