I am trying different ways to query a record within a array of records and display complete Row as output.
I dont know which nested Object has String \"pg\"
The problem was solved by
I found a way through Explode.
val results = sqlc.sql("SELECT firstname, child.name, FROM parent LATERAL VIEW explode(children) childTable AS child