You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2023/06/11 05:04:00 UTC
[jira] [Resolved] (SPARK-43884) Allow parameter markers in DDL (again)
[ https://issues.apache.org/jira/browse/SPARK-43884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gengliang Wang resolved SPARK-43884.
------------------------------------
Fix Version/s: 3.5.0
Resolution: Fixed
Issue resolved by pull request 41395
[https://github.com/apache/spark/pull/41395]
> Allow parameter markers in DDL (again)
> --------------------------------------
>
> Key: SPARK-43884
> URL: https://issues.apache.org/jira/browse/SPARK-43884
> Project: Spark
> Issue Type: New Feature
> Components: Spark Core
> Affects Versions: 3.5.0
> Reporter: Serge Rielau
> Assignee: Serge Rielau
> Priority: Major
> Fix For: 3.5.0
>
>
> When we introduced parameter markers initially, we allowed them n any SQL statement.
> Subsequently, we have limited their use to DML and queries because that aligns better with the industry and we saw no immediate use for broader support.
> However, we have introduced the IDENTIFIER() clause, which allows templating table-, and function-identifiers in DDL statements.
> To exploit this, we need parameter markers as argument:
> spark.sql("CREATE TABLE IDENTIFIER(:tableName) (c1 INT)", args = Map("tableName" -> "mytable")
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org