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

   ### What changes were proposed in this pull request?
   
   This PR proposes to improve error message for 
`UNRESOLVED_MAP_KEY.WITHOUT_SUGGESTION`.
   
   
   ### Why are the changes needed?
   
   Printing the single quotes in error message as an example would more helpful 
for users, and we don't need 'please' in the error message. See 
https://spark.apache.org/error-message-guidelines.html more detail.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   Minor error message improvement.
   
   From
   ```
   Cannot resolve column col1 as a map key. If the key is a string literal, 
please add single quotes around it.
   ```
   
   To
   ```
   Cannot resolve column col1 as a map key. If the key is a string literal, add 
single quotes around it: 'col1'.
   ```
   
   
   ### How was this patch tested?
   
   The existing CI should pass.
   


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