cloud-fan commented on issue #21732: [SPARK-24762][SQL] Enable Option of 
Product encoders
URL: https://github.com/apache/spark/pull/21732#issuecomment-450161486
 
 
   `Seq(Some(1), Some(2))` is treated same as `Seq(1, 2)`, because it's only a 
single column and we can make it nullable. So the `Some` here changes nothing 
but the column nullability.
   
   `Seq((1, "a"),(2, "b"))` is special, as dataset encoder assumes the top 
level `Product` will never be null, and flatten it into 2 columns. If we add 
`Some` here, we can't do the flattening.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to