Anmol Jain
03/08/2023, 9:38 PMCannot have map type columns in DataFrame which calls set operations
To reproduce:
Select * from
(
SELECT struct('Spark', map(1,2)) as a
Union
SELECT struct('Spark', map(1,1)) as a
)
Please do share best practices on handling these casesChristopher Grant
03/09/2023, 8:19 AMUNION ALL
. UNION
tries to take only the distinct rows, and you can't do a distinct
on MapType columns, i guessAnmol Jain
03/10/2023, 12:07 PM