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

   ### What changes were proposed in this pull request?
   Wrap values of SQL configs and datasource options in error messages by 
double quotes. Added the `toDSOption()` method to `QueryErrorsBase` to quote DS 
options.
   
   This is a backport of https://github.com/apache/spark/pull/36579.
   
   ### Why are the changes needed?
   1. To highlight SQL config/DS option values and make them more visible for 
users.
   2. To be able to easily parse values 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 <max.g...@gmail.com>
   Signed-off-by: Max Gekk <max.g...@gmail.com>
   (cherry picked from commit 96f4b7dbc1facd1a38be296263606aa312861c95)
   Signed-off-by: Max Gekk <max.g...@gmail.com>
   


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to