gengliangwang commented on PR #37861:
URL: https://github.com/apache/spark/pull/37861#issuecomment-1245085715

   For throwing AnalysisException, we should use the method
   ```
       def failAnalysis(errorClass: String, messageParameters: Array[String]): 
Nothing = {
         throw new AnalysisException(
           errorClass = errorClass,
           messageParameters = messageParameters,
           origin = t.origin)
       }
   ```
   or similar approaches.


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