cloud-fan opened a new pull request #24469: [SPARK-27576][SQL] table capability 
to skip the output column resolution
URL: https://github.com/apache/spark/pull/24469
 
 
   ## What changes were proposed in this pull request?
   
   Currently we have an analyzer rule, which resolves the output columns of 
data source v2 writing plans, to make sure the schema of input query is 
compatible with the table.
   
   However, not all data sources need this check. For example, the 
`NoopDataSource` doesn't care about the schema of input query at all.
   
   This PR introduces a new table capability: ACCEPT_ANY_SCHEMA. If a table 
reports this capability, we skip resolving output columns for it during write.
   
   Note that, we already skip resolving output columns for `NoopDataSource` 
because it implements `SupportsSaveMode`. However, `SupportsSaveMode` is a hack 
and will be removed soon.
   
   ## How was this patch tested?
   
   new test cases
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to