Reputation: 37
We pulled down the BeamSql code from the master branch on GitHub, since it seems to support Array, Map, and Row type fields. Does it have a way of querying those fields? or do we need to write UDFs for that?
Upvotes: 0
Views: 248
Reputation: 2539
You should be able to query them, see the examples in the tests:
"SELECT f_stringArr[0] FROM PCOLLECTION"
;"SELECT PCOLLECTION.f_nestedRow.f_nestedArray[1] FROM PCOLLECTION"
;"SELECT f_intStringMap['key11'] FROM PCOLLECTION"
;Caveats:
Upvotes: 1