dilipbiswal commented on PR #37011:
URL: https://github.com/apache/spark/pull/37011#issuecomment-1183531170

   @cloud-fan I briefly discussed this with @gatorsmile earlier in a call. How 
difficult it is to add a functionality to inject null (as default values) for 
non existent columns ? The data frame reader's schema method is able to do this 
today on file sources. Is this doable ? It would help in one of our use-cases. 
   
   Base Schema : StructType(f1, f2)
   Required schema : StructType(f1, f3)
   
   Result Schema: StructType(f1, f3) => f3 is projected as null.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to