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-50422][SQL] Make Parameterized SQL queries of SparkSession.sql API GA #48965

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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 @@ -210,7 +210,6 @@ class SparkSession private[sql] (
throw ConnectClientUnsupportedErrors.executeCommand()

/** @inheritdoc */
@Experimental
def sql(sqlText: String, args: Array[_]): DataFrame = {
val sqlCommand = proto.SqlCommand
.newBuilder()
Expand All @@ -221,13 +220,11 @@ class SparkSession private[sql] (
}

/** @inheritdoc */
@Experimental
def sql(sqlText: String, args: Map[String, Any]): DataFrame = {
sql(sqlText, args.asJava)
}

/** @inheritdoc */
@Experimental
override def sql(sqlText: String, args: java.util.Map[String, Any]): DataFrame = {
val sqlCommand = proto.SqlCommand
.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ abstract class SparkSession extends Serializable with Closeable {
* is.
* @since 3.5.0
*/
@Experimental
def sql(sqlText: String, args: Array[_]): Dataset[Row]

/**
Expand All @@ -488,7 +487,6 @@ abstract class SparkSession extends Serializable with Closeable {
* `array()`, `struct()`, in that case it is taken as is.
* @since 3.4.0
*/
@Experimental
def sql(sqlText: String, args: Map[String, Any]): Dataset[Row]

/**
Expand All @@ -506,7 +504,6 @@ abstract class SparkSession extends Serializable with Closeable {
* `array()`, `struct()`, in that case it is taken as is.
* @since 3.4.0
*/
@Experimental
def sql(sqlText: String, args: util.Map[String, Any]): Dataset[Row] = {
sql(sqlText, args.asScala.toMap)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ class SparkSession private(
}

/** @inheritdoc */
@Experimental
def sql(sqlText: String, args: Array[_]): DataFrame = {
sql(sqlText, args, new QueryPlanningTracker)
}
Expand Down Expand Up @@ -498,13 +497,11 @@ class SparkSession private(
}

/** @inheritdoc */
@Experimental
def sql(sqlText: String, args: Map[String, Any]): DataFrame = {
sql(sqlText, args, new QueryPlanningTracker)
}

/** @inheritdoc */
@Experimental
override def sql(sqlText: String, args: java.util.Map[String, Any]): DataFrame = {
sql(sqlText, args.asScala.toMap)
}
Expand Down