Skip to content

[SPARK-14253][SQL] Refactor HiveFunctionRegistry for temporary functions #12051

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

Closed
wants to merge 4 commits into from

Conversation

andrewor14
Copy link
Contributor

What changes were proposed in this pull request?

This is a prerequisite to SPARK-14123, which implements DDLs related to functions using SessionCatalog. In order to support CREATE TEMPORARY FUNCTION we need a way to make a FunctionBuilder from the function class name. This patch exposes an interface to do so.

How was this patch tested?

Jenkins.

Andrew Or added 2 commits March 29, 2016 16:13
This allows the DDL commands (when we implement them later) to
use this to create a FunctionBuilder when calling SessionCatalog
methods. This is needed for temporary functions.
@SparkQA
Copy link

SparkQA commented Mar 30, 2016

Test build #54474 has finished for PR 12051 at commit e5e51d9.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 30, 2016

Test build #54476 has finished for PR 12051 at commit ab991cb.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

*/
override def makeFunctionBuilder(funcName: String, funcClassName: String): FunctionBuilder = {
makeFunctionBuilder(funcName, Utils.classForName(funcClassName))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Yay! It's great to avoid of letting Hive load the classes.

@SparkQA
Copy link

SparkQA commented Mar 30, 2016

Test build #54479 has finished for PR 12051 at commit 8cd5708.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member

viirya commented Mar 30, 2016

LGTM, I can rebase #12036 against current change.

@andrewor14
Copy link
Contributor Author

Closing this in favor of #12036.

@andrewor14 andrewor14 closed this Mar 30, 2016
@andrewor14 andrewor14 deleted the hive-temp-functions branch March 30, 2016 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants