【发布时间】:2018-06-20 15:43:56
【问题描述】:
我正在使用 hive/impala,我经常需要查询 show partition 的结果来获取特定的分区。假设我有一个表tbl1 由字段country 和date 分区。所以,show partitions tbl1 会产生这样的结果
country=c1/date=d1
country=c1/date=d3
country=c2/date=d2
我想做select * from (show partitions tbl1) a where a.country='c1' 之类的事情,我想在 Hue 或 shell(hive 和 impala)中执行此操作。
这可能吗?
【问题讨论】: