Nizar Hejazi
07/28/2022, 11:54 PMARRAY '[' value [, value ]* ']' Creates an array from a list of values.Jackie
07/29/2022, 12:35 AMJackie
07/29/2022, 12:36 AMSELECT ARRAY [SUM(colA), MAX(colA)] FROM myTable?Nizar Hejazi
07/29/2022, 12:39 AMSELECT ARRAY[1, 2, 3];
SELECT ARRAYLENGTH(ARRAY[1, 2, 3]);
etc.Jackie
07/29/2022, 1:03 AMARRAY as a multi-value, but all elements of the MV must be the same data type
2. Scalar function can only take fixed number of arguments (instead of something like array(String... values))
3. Scalar function cannot do type matching now, which means we might need to have arrayInt(), arrayLong() etcNizar Hejazi
07/29/2022, 1:28 AMARRAYLENGTH, MAP_VALUE, VALUEIN) and aggregations (COUNTMV, MINMV, etc.) that works w/ the MV column generated using ARRAY which is very useful.Nizar Hejazi
07/29/2022, 10:16 PMJackie
07/29/2022, 10:20 PM