AWS Athena (Presto) how to transpose map to columns

前端 未结 1 1540
情深已故
情深已故 2021-01-29 02:27

AWS Athena query question;

I have a nested map in my rows, of which I would like to transpose the keys to columns. I could name the columns explicitly like items[\'

1条回答
  •  梦毁少年i
    2021-01-29 03:17

    This is not possible in a dynamic manner due to the fact that output columns need to be know to the planner before the query execution starts.

    See the previous discussion here: https://github.com/prestosql/presto/issues/2448 and https://github.com/prestosql/presto/issues/1206.

    0 讨论(0)
提交回复
热议问题