我在 hive 里有以下情况。我有一个Map,叫做“out”,我运行这个查询。
select distinct coalesce(out["a"],aa_out["b"]) b, 'id' b_name
from TABLE
我在sql中有完全相同的数据,只是这次我的数据显示为:
out RECORD REPEATED
out. key STRING NULLABLE
out. value STRING NULLABLE
我想用sql编写完全相同的查询。但是,我不知道如何在sql中有效地使用键值记录实现相同的hive[]Map表示法。
任何想法(大查询)
1条答案
按热度按时间t5zmwmid1#