vladanvasi-db opened a new pull request, #60722: URL: https://github.com/apache/spark/pull/60722
### What changes were proposed in this pull request? Move `lookupTableOrView` from `Analyzer.ResolveRelations` into `RelationResolution`, and route the existing `UnresolvedTable`, `UnresolvedView` and `UnresolvedTableOrView` cases through it. Update references in test comments and add focused coverage for the extracted helper. Jira: [SPARK-62088](https://issues.apache.org/jira/browse/SPARK-62088). ### Why are the changes needed? DDL target lookup belongs with the other relation-resolution helpers. Moving it out of the Analyzer rule makes the metadata lookup reusable while preserving temporary-view precedence, identifier expansion, table/view catalog dispatch and existing errors. View definitions remain unexpanded during this lookup. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `build/sbt 'catalyst/testOnly *RelationResolutionSuite *AnalysisExceptionPositionSuite'`: 22 tests passed. - `build/sbt catalyst/scalastyle catalyst/Test/scalastyle`: passed. - `git diff --check`, source line-length and ASCII checks. The new tests cover qualified and unqualified identifiers, local/global temporary-view precedence, single-call `RelationCatalog` dispatch, pure view catalogs, view capability errors, session-catalog table/view metadata, missing objects and propagation of other catalog failures. The existing position suite checks all three unresolved DDL target types. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex CLI 0.170.0 (GPT-6). -- 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]
