wypoon opened a new pull request, #36585:
URL: https://github.com/apache/spark/pull/36585
### What changes were proposed in this pull request?
1. Fix some typos in query parsing error messages.
2. Remove extraneous whitespace in some messages. Add a space before "(line
<number>, position <index>)" to improve readability.
3. Fix a typo in a function name.
### Why are the changes needed?
To improve usability.
### Does this PR introduce _any_ user-facing change?
Yes. E.g., before this change, we may have an error
```
scala> spark.sql("SET non-existent-key")
org.apache.spark.sql.catalyst.parser.ParseException:
Expected format is 'SET', 'SET key', or 'SET key=value'. If you want to
include special characters in key, or include semicolon in value, please use
quotes, e.g., SET `ke y`=`v;alue`. (line 1, pos 0)
== SQL ==
SET non-existent-key
^^^
```
After this change, the error message becomes
```
org.apache.spark.sql.catalyst.parser.ParseException:
Expected format is 'SET', 'SET key', or 'SET key=value'. If you want to
include special characters in key, or include semicolon in value, please use
quotes, e.g., SET `key`=`v;alue`. (line 1, pos 0)
```
### How was this patch tested?
No tests needed, as the change is straightforward and simply to text
formatting.
--
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]