spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yong Zhang <>
Subject Re: Outer Explode needed
Date Tue, 26 Jul 2016 13:25:51 GMT
The reason of no response is that this feature is not available yet.

You can vote and following this JIRA, if
you really need this feature.


From: Don Drake <>
Sent: Monday, July 25, 2016 9:12 PM
Subject: Fwd: Outer Explode needed

No response on the Users list, I thought I would repost here.

See below.

---------- Forwarded message ----------
From: Don Drake <<>>
Date: Sun, Jul 24, 2016 at 2:18 PM
Subject: Outer Explode needed
To: user <<>>

I have a nested data structure (array of structures) that I'm using the DSL df.explode() API
to flatten the data.  However, when the array is empty, I'm not getting the rest of the row
in my output as it is skipped.

This is the intended behavior, and Hive supports a SQL "OUTER explode()" to generate the row
when the explode would not yield any output.

Can we get this same outer explode in the DSL?  I have to jump through some outer join hoops
to get the rows where the array is empty.



Donald Drake
Drake Consulting<>

Donald Drake
Drake Consulting<>

View raw message