Description
AnalysisException [UNRESOLVED_COLUMN.WITH_SUGGESTION] shows the wrong suggestion when a field with the "." separator is referenced without backticks.
The following code references a nested value `the`.`id`, that does not exist. The proposed / existing column names are not correctly wrapped in backticks:
Seq((0)).toDF("the.id") .select("the.id").show() org.apache.spark.sql.AnalysisException: [UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `the`.`id` cannot be resolved. Did you mean one of the following? [`the`.`id`];
Instead of suggesting [`the`.`id`] in the error message, you would expect suggesting [`the.id`].
Attachments
Attachments
Issue Links
- relates to
-
SPARK-39492 Rework MISSING_COLUMN error class
- Resolved
- links to