Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-40153][SQL] Unify resolve functions and table-valued functions #37586

Conversation

allisonwang-db
Copy link
Contributor

@allisonwang-db allisonwang-db commented Aug 19, 2022

What changes were proposed in this pull request?

This PR merges the analyzer rule ResolveTableValuedFunctions into ResolveFunctions.

Why are the changes needed?

Unify the code logic and make resolve scalar and table-valued functions consistent.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing unit tests.

@github-actions github-actions bot added the SQL label Aug 19, 2022
@allisonwang-db
Copy link
Contributor Author

cc @cloud-fan

@allisonwang-db allisonwang-db changed the title [SPARK-40153][SQL] Unify the logic of resolve functions and table-valued functions [SPARK-40153][SQL] Unify resolve functions and table-valued functions Aug 25, 2022
@@ -2088,12 +2087,14 @@ class Analyzer(override val catalogManager: CatalogManager)
/**
* Replaces [[UnresolvedFunc]]s with concrete [[LogicalPlan]]s.
* Replaces [[UnresolvedFunction]]s with concrete [[Expression]]s.
* Replaces [[UnresolvedTableValuedFunction]]s with concrete [[LogicalPlan]]s.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems we are updating the comments, let's list UnresolvedGenerator as well.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 973b674 Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants