Vladan Vasić created SPARK-62088:
------------------------------------

             Summary: Move DDL table and view lookup into RelationResolution
                 Key: SPARK-62088
                 URL: https://issues.apache.org/jira/browse/SPARK-62088
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Vladan Vasić


Analyzer.ResolveRelations currently owns the private lookupTableOrView helper 
used to resolve UnresolvedTable, UnresolvedView and UnresolvedTableOrView 
targets.

Move this metadata lookup into RelationResolution and update all three existing 
callers. This keeps catalog lookup with the other relation-resolution helpers 
and makes DDL target lookup reusable independently of the Analyzer rule, 
without expanding view definitions.

Preserve temporary-view precedence, identifier expansion, RelationCatalog 
single-call dispatch, V1 session-catalog view wrapping, pure ViewCatalog 
fallback, catalog capability checks and exception propagation. This is an 
internal refactor with no SQL behavior change.

Add focused Catalyst coverage for the extracted helper and run 
AnalysisExceptionPositionSuite to check the existing unresolved-target paths 
and error positions.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to