Skip to content

Using unnest without cast? #2691

Answered by aomarks
TinaNikou asked this question in Q&A
Jul 31, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Yep, unnest requires that the value you wire to it has a schema, and that the schema has type object. cast is the best way to assign a schema to some value when it's unknown, such as in the case of fetch. In other situations where there is already a schema, you wouldn't need the cast.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aomarks
Comment options

@TinaNikou
Comment options

Answer selected by TinaNikou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants