The array_agg function in SparkSQL does not have a specific sorting arrangement by default. It collects values from a group of input rows and returns them as an array, retaining the order of occurrence in the input rows. However, you can specify a custom sorting arrangement using the order by clause within the window function if required.
Asked: 2023-06-25 13:20:09 +0000
Seen: 9 times
Last updated: Jun 25 '23