[TASK][EASY] Spark crashes with ClassCastException when resolving a join of masked tables
- Dominant language
- Scala
- Stars
- 2.4k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before creating
- [X] I have searched in the [task list](https://github.com/orgs/apache/projects/296) and found no similar tasks.
### Mentor
- [ ] I have sufficient knowledge and experience of this task, and I volunteer to be the mentor of this task to guide contributors to complete the task.
### Skill requirements
- Knowledge about Spark Catalyst
- Basic Knowledge of SQL authorization model, e.g. Apache Ranger
### Background and Goals
Spark authz plugin may generate an invalid query plan which fails the query
https://github.com/apache/kyuubi/issues/5092
### Implementation steps
Analysis the stack trace and fix the invalid query plan
### Additional context
Original reporter is @yaooqinn
Contributor guide
Assessment
This issue has not been assessed yet.