[ 
https://issues.apache.org/jira/browse/HIVE-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081268#comment-13081268
 ] 

jirapos...@reviews.apache.org commented on HIVE-2020:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1324/
-----------------------------------------------------------

Review request for hive and Carl Steinbach.


Summary
-------

Create a separate namespace for Hive variables.

Added support for:

1. -d and --define;
2. set define:var=var_value; // To set the variable
3. set -v;
4. set define:var; // To print the variable

Thanks
Vaibhav


This addresses bug HIVE-2020.
    https://issues.apache.org/jira/browse/HIVE-2020


Diffs
-----

  cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java a2976b5 
  cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java 90084ed 
  ql/src/java/org/apache/hadoop/hive/ql/parse/VariableSubstitution.java e203dda 
  ql/src/java/org/apache/hadoop/hive/ql/processors/SetProcessor.java 97fa1ab 
  ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java 6a6e8e8 

Diff: https://reviews.apache.org/r/1324/diff


Testing
-------


Thanks,

Vaibhav



> Create a separate namespace for Hive variables
> ----------------------------------------------
>
>                 Key: HIVE-2020
>                 URL: https://issues.apache.org/jira/browse/HIVE-2020
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Vaibhav Aggarwal
>         Attachments: HIVE-2020-2.patch, HIVE-2020.patch
>
>
> Support for variable substitution was added in HIVE-1096. However, variable 
> substitution was implemented by reusing the HiveConf namespace, so there is 
> no separation between Hive configuration properties and Hive variables.
> This ticket encompasses the following enhancements:
> * Create a separate namespace for managing Hive variables.
> * Add support for setting variables on the command line via '-hivevar x=y'
> * Add support for setting variables through the CLI via 'var x=y'
> * Add support for referencing variables in statements using either 
> '${hivevar:var_name}' or '${var_name}'
> * Provide a means for differentiating between hiveconf, hivevar, system, and 
> environment properties in the output of 'set -v'

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to