Spark SQL - flatten Function
Kontext visibility 567 event 2022-05-31 access_time 2 years ago language English
As many other programming frameworks, flatten is usually used to translate an array of arrays to a single array. In Spark SQL, a built in function
flatten can be used to flatten arrays.
SELECT flatten(array(array(1, 2), array(3, 4, 5), array(6, 7), array(8)));
copyright This page is subject to Site terms.
No comments yet.