Query A Nested Array in Parquet Records

后端 未结 2 476
北荒
北荒 2021-01-15 16:54

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\"

2条回答
  •  迷失自我
    2021-01-15 17:42

    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 
    

提交回复
热议问题