Hive 将计数器(n)转换为n行配置单元

Hive 将计数器(n)转换为n行配置单元,hive,Hive,如何在配置单元中完成以下转换 <some string> n (Int) => n rows. <some string> <some string> <some string> .... <some string> n(Int)=>n行。 .... 提前感谢您在Brickhouse()中使用“数字范围”UDTF 这将输出一个从0到n-1的整数,主要用于访问数组 SELECT some_string, idx

如何在配置单元中完成以下转换

<some string> n (Int) => n rows.

<some string>
<some string>
<some string>
....
<some string>
n(Int)=>n行。
....

提前感谢您

在Brickhouse()中使用“数字范围”UDTF

这将输出一个从0到n-1的整数,主要用于访问数组

SELECT some_string,
       idx
FROM my_table
LATERAL VIEW numeric_range( n ) nidx as idx;