How can I append int value to int array in Hive without UDF? -
i have int column main_region , int array column regions.
is there way select append(main_region, regions) ... without udf?
hive limited in terms of udfs array manipulation.
if string array, have used concat_ws , split.
for general case, think explode , collect_list can used, very inefficient.
your best bet implement one-line udf...
Comments
Post a Comment