如何在蜂巢中完成以下转换。
<some string> n (Int) => n rows.
<some string>
<some string>
<some string>
....
<some string>
先谢谢你
发布于 2014-04-09 23:24:55
在Brickhouse中使用“numeric_range”UDTF ( http://github.com/klout/brickhouse )
SELECT some_string,
idx
FROM my_table
LATERAL VIEW numeric_range( n ) nidx as idx;
这将输出一个从0到n-1的整数,并且主要用于访问数组。
https://stackoverflow.com/questions/22947455
复制相似问题