我正在研究一个lisp函数,该函数接受输入line-height
并生成一个佩尔数字列表,直到第n个数字。 select s.*, e.i, e.x
from
(
select percentile_approx(probability,
array(0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35,
0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75,
0.8, 0.85, 0.9, 0.95, 0.99)) as quantiles
from my_table
) s lateral view outer posexplode (s.quantiles) e as i, x
;
返回列表n
。
现在,我只知道如何使用递归来定义它。有人可以告诉我如何使用迭代方法吗?谢谢。
(pellse 7)