My data is as follows:
[null,223433,WrappedArray(),null,460036382,0,home,home,home]
How to check if col3 is empty in a query in spark sql? I tried to explode, but when I do this, empty array lines disappear. Can anyone suggest me a way to do this.
I tried:
val homeSet = result.withColumn("subscriptionProvider", explode($"subscriptionProvider"))
where subscriptionProvider(WrappedArray())is a column with an array of values, but some arrays may be empty. I need to get a Provider subscriber with null values, and in the subscriptionProvider array - "Comcast"
source
share