Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51222][SQL] Optimize ReplaceCurrentLike
### What changes were proposed in this pull request? Improve ReplaceCurrentLike FinishAnalysis rule. This was found as a result of debugging SPARK-51119. ### Why are the changes needed? The rule calls the catalog unnecessarily, and this can be done lazily only if it is resolving current_catalog() and current_database() expressions. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing unit test ### Was this patch authored or co-authored using generative AI tooling? No Closes #49963 from szehon-ho/SPARK-51222. Authored-by: Szehon Ho <szehon.apache@gmail.com> Signed-off-by: beliefer <beliefer@163.com>
- Loading branch information