vladanvasi-db opened a new pull request, #59646: URL: https://github.com/apache/spark/pull/59646
### What changes were proposed in this pull request? Support `DROP TABLE` in the single-pass analyzer for V1 and V2 catalogs, including `IF EXISTS`, `PURGE`, qualified identifiers, and temporary views. Share command-target identifier resolution and session-catalog lowering with the fixed-point analyzer, register the resolver in both core and Hive sessions, and add validator extensions for commands resolved outside Catalyst. The SQL golden tests are covered separately by [SPARK-60197](https://issues.apache.org/jira/browse/SPARK-60197). ### Why are the changes needed? `DROP TABLE` currently falls back to the fixed-point analyzer. Sharing the existing identifier and command conversion logic keeps both analyzers' plans and error behavior consistent. ### Does this PR introduce _any_ user-facing change? No. SQL behavior is preserved; the single-pass analyzer can resolve an additional command. ### How was this patch tested? Focused tests cover V1/V2 plan parity, temporary views, identifier origin and tags, namespace errors, guard routing, and catalog API execution with single-pass analysis forced on and validation enabled. Independent subagent review completed with no remaining findings. All 114 tests passed: - `DropTableResolverSuite`, `ResolverGuardSuite`, and `ResolutionValidatorSuite` (90 tests). - Existing V1/V2 `DropTableSuite` tests (16 tests) and Hive `DropTableSuite` (8 tests). Scala style checks passed for Catalyst, SQL main/test sources, and Hive. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (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]
