GitHub user rdblue opened a pull request:

    https://github.com/apache/spark/pull/15738

    SPARK-18086: Add support for Hive session vars.

    ## What changes were proposed in this pull request?
    
    This adds support for Hive variables:
    
    * Makes values set via `spark-sql --hivevar name=value` accessible
    * Adds `getHiveVar` and `setHiveVar` to the `HiveClient` interface
    * Adds a SessionVariables trait for sessions like Hive that support 
variables (including Hive vars)
    * Adds SessionVariables support to variable substitution
    * Adds SessionVariables support to the SET command
    
    ## How was this patch tested?
    
    * Adds a test to all supported Hive versions for accessing Hive variables
    * Adds HiveVariableSubstitutionSuite

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rdblue/spark SPARK-18086-add-hivevar-support

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/15738.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #15738
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to