EnricoMi opened a new pull request, #38256:
URL: https://github.com/apache/spark/pull/38256
### What changes were proposed in this pull request?
This fixes quoting the column candidates in the error message
`UNRESOLVED_COLUMN`:
```
Seq((0)).toDF("the.id").select("the.id").show()
```
The error message should read
org.apache.spark.sql.AnalysisException: [UNRESOLVED_COLUMN] A column or
function parameter with name `the`.`id` cannot be resolved. Did you mean one of
the following? [`the.id`];
### Why are the changes needed?
The current quoting is wrong:
A column or function parameter with name `the`.`id` cannot be resolved.
Did you mean one of the following? [`the`.`id`]
### Does this PR introduce _any_ user-facing change?
It corrects the error message.
### How was this patch tested?
This is tested in `DatasetSuite` and `AnalysisErrorSuite`.
--
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]