HeartSaVioR opened a new pull request #29830:
URL: https://github.com/apache/spark/pull/29830


   ### What changes were proposed in this pull request?
   
   This PR adds additional check on temp view in prior to loadTable in 
DataFrameWriterV2, and fail-fast with better exception.
   
   ### Why are the changes needed?
   
   This PR would provide better exception and its message - see below section.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes - previously using temp view in DataFrameWriterV2 throws 
NoSuchTableException without any information on temp view. Now it throws 
AnalysisException with exception message that it's a temporary view which 
doesn't support write operations in DataFrameWriterV2.
   
   ### How was this patch tested?
   
   New UTs


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



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

Reply via email to