NarekDW opened a new pull request, #39501: URL: https://github.com/apache/spark/pull/39501
### What changes were proposed in this pull request? In the PR, I propose to assign the proper names FIELD_NOT_FOUND to the legacy error classes: - `_LEGACY_ERROR_TEMP_1105` -> `INVALID_EXTRACT_FIELD_TYPE` - `_LEGACY_ERROR_TEMP_1106` -> `INVALID_CHILD_FIELD_TYPE` - `_LEGACY_ERROR_TEMP_1209` -> `AMBIGUOUS_REFERENCE_TO_FIELDS` and modify test suite to use checkError() which checks the error class name, context and etc. **Also this PR contains [SPARK-41296] JIRA task. And an additional change (AMBIGUOUS_REFERENCE_TO_FIELDS) which is not tracked in JIRA.** ### Why are the changes needed? Proper name improves user experience w/ Spark SQL. fix a bug, you can clarify why it is a bug. ### Does this PR introduce _any_ user-facing change? Yes, the PR changes an user-facing error message. ### How was this patch tested? By running the modified test suites: `org.apache.spark.sql.catalyst.expressions.ComplexTypeSuite` -- 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]
