You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (JIRA)" <ji...@apache.org> on 2017/06/02 07:40:04 UTC

[jira] [Created] (SPARK-20965) Support PREPARE and EXECUTE statements

Takeshi Yamamuro created SPARK-20965:
----------------------------------------

             Summary: Support PREPARE and EXECUTE statements
                 Key: SPARK-20965
                 URL: https://issues.apache.org/jira/browse/SPARK-20965
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.1.1
            Reporter: Takeshi Yamamuro
            Priority: Minor


Parameterized queries might help for some users, so we might support PREPRE and EXECUTE statements by referring the ANSI/SQL standard (e.g., it is some useful for users who frequently use the same queries)

{code}
PREPARE sqlstmt (int) AS SELECT * FROM t WEHERE id = $1;
EXECUTE sqlstmt(1);
{code}

One of implementation references: https://www.postgresql.org/docs/current/static/sql-prepare.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org