Hive 配置单元中的数组文字

Hive 配置单元中的数组文字,hive,hiveql,Hive,Hiveql,如何在配置单元中写出数组文字 SELECT PERCENTILE(my_column, [0.5, 0.25, 0.50, 0.75, 0.95]) AS quantiles FROM my_table 返回错误 FAILED: ParseException line xx:xx cannot recognize input near '[' '0.5' ',' in select expression 尝试使用数组而不是[] SELECT PERCENTILE(my_column, arr

如何在配置单元中写出数组文字

SELECT PERCENTILE(my_column, [0.5, 0.25, 0.50, 0.75, 0.95]) AS quantiles
FROM my_table
返回错误

FAILED: ParseException line xx:xx cannot recognize input near '[' '0.5' ',' in select expression

尝试使用
数组
而不是
[]

SELECT PERCENTILE(my_column, array(0.5, 0.25, 0.50, 0.75, 0.95)) AS quantiles
FROM my_table
根据,不支持浮动