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-14123] [SQL] DDL: Create / Drop Function #11988

Closed
wants to merge 6 commits into from
Closed

[SPARK-14123] [SQL] DDL: Create / Drop Function #11988

wants to merge 6 commits into from

Conversation

bomeng
Copy link
Contributor

@bomeng bomeng commented Mar 27, 2016

What changes were proposed in this pull request?

This is the first step to support create / drop functions by using catalog based on @yhuai document. Instead of using NativeDDLCommand, we will call the functions in the catalog to do the jobs.

How was this patch tested?

I've create a new test suite called DDLSuite that will test the DDL functions, eventually it will contains more DDL test cases, such as Create DB / Table, etc.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

databaseName
} else {
Some(catalog.getCurrentDatabase)
}
Copy link
Member

Choose a reason for hiding this comment

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

    val db = databaseName.getOrElse(catalog.getCurrentDatabase)

Then, use Some in the next statement.

@gatorsmile
Copy link
Member

@bomeng Overall, looks good. Just a few minor comments.

Can you also emphasize the following point in the How was this patch tested?:

  • In this PR, since both HiveContext and SQLContext share the same implementation of Create Function and Drop Function, the existing test cases in HiveContext also verify the correctness of this PR.

BTW, this PR also needs to wait for the merge of PR: #11972. We need to do the corresponding changes based on it.

Thanks for your fast work!

cc @yhuai @andrewor14 Could you check if this solution is appropriate? Thanks!

@bomeng
Copy link
Contributor Author

bomeng commented Mar 28, 2016

Hive tests failed. Closed for now for more investigation.

@bomeng bomeng closed this Mar 28, 2016
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.

3 participants