I have read this row from a spark DataFrame:
scala> val t = df.take(99)
scala> t(0)(0)
res69: Any = [2,null,WrappedArray([20789823,null,0.0,null,1490788977,1], [50115961,null,0.0,null,1490788977,1], [20787723,null,0.0,null,1490788977,1], [20796254,null,0.0,null,1490788977,1]),null,1488196976]
But unfortunately, I do not know how to access the wrapped array within the Any
.
While I can convert it to String and parse the output string, I am looking for the proper way to access the array.