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-50759][SQL] Deprecate a few legacy Catalog APIs #50085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ abstract class Catalog {
* is an unqualified name that designates a table/view.
* @since 2.0.0
*/
@deprecated("use listColumns(tableName: String) instead.", "4.0.0")
@throws[AnalysisException]("database or table does not exist")
def listColumns(dbName: String, tableName: String): Dataset[Column]

Expand Down Expand Up @@ -175,6 +176,7 @@ abstract class Catalog {
*
* @since 2.1.0
*/
@deprecated("use getTable(tableName: String) instead.", "4.0.0")
@throws[AnalysisException]("database or table does not exist")
def getTable(dbName: String, tableName: String): Table

Expand Down Expand Up @@ -204,6 +206,7 @@ abstract class Catalog {
* is an unqualified name that designates a function in the specified database
* @since 2.1.0
*/
@deprecated("use getFunction(functionName: String) instead.", "4.0.0")
@throws[AnalysisException]("database or function does not exist")
def getFunction(dbName: String, functionName: String): Function

Expand Down Expand Up @@ -240,6 +243,7 @@ abstract class Catalog {
* is an unqualified name that designates a table.
* @since 2.1.0
*/
@deprecated("use tableExists(tableName: String) instead.", "4.0.0")
def tableExists(dbName: String, tableName: String): Boolean

/**
Expand Down Expand Up @@ -267,6 +271,7 @@ abstract class Catalog {
* is an unqualified name that designates a function.
* @since 2.1.0
*/
@deprecated("use functionExists(functionName: String) instead.", "4.0.0")
def functionExists(dbName: String, functionName: String): Boolean

/**
Expand Down