You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel Tenedorio (Jira)" <ji...@apache.org> on 2025/10/16 21:21:00 UTC
[jira] [Assigned] (SPARK-53573) Expand usage of parameter markers by means of a pre-processing parser
[ https://issues.apache.org/jira/browse/SPARK-53573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Tenedorio reassigned SPARK-53573:
----------------------------------------
Assignee: Serge Rielau
> Expand usage of parameter markers by means of a pre-processing parser
> ---------------------------------------------------------------------
>
> Key: SPARK-53573
> URL: https://issues.apache.org/jira/browse/SPARK-53573
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 4.1.0
> Reporter: Serge Rielau
> Assignee: Serge Rielau
> Priority: Major
> Labels: pull-request-available
>
> The current implementation of parameter markers (:Parm and ?) is limited to two scenarios which must both be true:
> 1. An expression, such as a WHERE clause or a SELECT list
> 2. A query, a DML statement, or SET VARIABLE.
> There is a lot of value in expanding their use to:
> 1. DDL and utility statements (such as CREATE VIEW, or SHOW)
> 2. Any place a literal can go (such as TBLPROPERTIES, or DECIMAL(?, ?).
> Unfortunately the current implementation is very hard to expand in that direction.
> For DDL we must persist the effective text, or remember the parameter marker values
> And literals in general do NOT go through the analyzer. They are often handled straight in te visit methods.
> This proposed solution is to add a pre-parser which's sole job is replace any parameter markers it finds with literals without the regular parser having to be aware.
>
--
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