You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vineet Garg (Jira)" <ji...@apache.org> on 2020/07/29 20:27:00 UTC

[jira] [Updated] (HIVE-23950) [Umbrella]Support PREPARE and EXECUTE statements

     [ https://issues.apache.org/jira/browse/HIVE-23950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vineet Garg updated HIVE-23950:
-------------------------------
    Summary: [Umbrella]Support PREPARE and EXECUTE statements  (was: Support PREPARE and EXECUTE statements)

> [Umbrella]Support PREPARE and EXECUTE statements
> ------------------------------------------------
>
>                 Key: HIVE-23950
>                 URL: https://issues.apache.org/jira/browse/HIVE-23950
>             Project: Hive
>          Issue Type: New Feature
>          Components: Query Planning
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>            Priority: Major
>
> PREPARE and EXECUTE statements provide an ability to create a parameterized query and re-use it to execute with different parameters.
> e.g.
> {code:sql}
> PREPARE pcount from 
>     select count(*) from src where key > ?;
> EXECUTE pcount using 200;
> PREPARE pquery2 from 
>    select count(*) from daysales where dt=? and customer=?;
> EXECUTE pquery2 using '2001-01-01',1;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)