How to LATERAL VIEW explode #10747
-
Hi there! I have seen discussions arround doing such things:
But couldn't find a proper example of how to do it... Do you guys have something? |
Beta Was this translation helpful? Give feedback.
Answered by
cpcloud
Jan 29, 2025
Replies: 2 comments
-
This operation is spelled using TL; DR: start with the first form, and consider the second form if you need to generate array element offsets. Here's a description of the two forms:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cpcloud
-
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This operation is spelled using
t.my_column.unnest()
ort.unnest("my_column")
.TL; DR: start with the first form, and consider the second form if you need to generate array element offsets.
Here's a description of the two forms:
unnest()
isarray<T>
, then the type after callingunnest()
isT
. Here's the API documentation for that one: https://ibis-project.org/reference/expression-collections.html#ibis.expr.types.arrays.ArrayValue.unnest