zsxwing commented on issue #25382: [SPARK-28651][SS]Force streaming file source 
to be nullable
URL: https://github.com/apache/spark/pull/25382#issuecomment-519611520
 
 
   > ideally we should respect the nullability ...
   
   Agreed with this. However, I think making the file source report the correct 
nullability is hard. It's either be inferred or user specified, which is 
error-prone. As Spark right now doesn't validate data to make sure nullability 
is correct, it can lead to weird NPE when processing the bad data, or corrupted 
files when writing. It would be hard for a Spark user to debug such errors.
   
   I don't know why we added this behavior for batch queriers. Ping @liancheng 
to comment this since he added it in 
https://github.com/apache/spark/pull/6285/files#diff-3d26956194a9a58c7eca9b364395e0c2R249
   
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to