MaxGekk opened a new pull request, #36340:
URL: https://github.com/apache/spark/pull/36340

   ### What changes were proposed in this pull request?
   Wrap SQL configs in error messages by double quotes. Added the `toSQLConf()` 
method to `QueryErrorsBase` to invoke it from `Query.*Errors`.
   
   This is a backport of https://github.com/apache/spark/pull/36335.
   
   ### Why are the changes needed?
   1. To highlight types and make them more visible for users.
   2. To be able to easily parse types from error text.
   3. To be consistent to other outputs of identifiers, sql statement and etc. 
where Spark uses quotes or ticks.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, it changes user-facing error messages.
   
   ### How was this patch tested?
   By running the modified test suites:
   ```
   $ build/sbt "testOnly *QueryCompilationErrorsSuite"
   $ build/sbt "testOnly *QueryExecutionAnsiErrorsSuite"
   $ build/sbt "testOnly *QueryExecutionErrorsSuite"
   ```
   
   Authored-by: Max Gekk <[email protected]>
   Signed-off-by: Max Gekk <[email protected]>
   (cherry picked from commit f01bff971e36870e101b2f76195e0d380db64e0c)
   Signed-off-by: Max Gekk <[email protected]>


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