Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Positional access to fields in anonymous Row #860
It's very easy to construct an unnamed/anonymous
Also, some connectors return rows with unnamed fields (e.g. #416)
Currently, accessing an individual value in such a row is not convenient: it requires casting to a named row, so user needs to name all the fields and their types. This verbosity brings no additional benefit.
Let's provide a way to access fields in anonymous
See previous discussion: #416 (comment)
I like this idea.
I think it's the cleanest way to implement this. It doesn't require additional syntax or non-standard language constructs, and it's semantically consistent with arrays and maps. The only weird aspect is the requirement that the subscript be a constant, so it's not completely seamless vs subscript for other types.