{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15738","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15738/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15738/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15738/events","html_url":"https://github.com/apache/spark/pull/15738","id":186887862,"number":15738,"title":"SPARK-18086: Add support for Hive session vars.","user":{"login":"rdblue","id":87915,"avatar_url":"https://avatars.githubusercontent.com/u/87915?v=3","gravatar_id":"","url":"https://api.github.com/users/rdblue","html_url":"https://github.com/rdblue","followers_url":"https://api.github.com/users/rdblue/followers","following_url":"https://api.github.com/users/rdblue/following{/other_user}","gists_url":"https://api.github.com/users/rdblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rdblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdblue/subscriptions","organizations_url":"https://api.github.com/users/rdblue/orgs","repos_url":"https://api.github.com/users/rdblue/repos","events_url":"https://api.github.com/users/rdblue/events{/privacy}","received_events_url":"https://api.github.com/users/rdblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-02T18:46:06Z","updated_at":"2016-11-02T21:52:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15738","html_url":"https://github.com/apache/spark/pull/15738","diff_url":"https://github.com/apache/spark/pull/15738.diff","patch_url":"https://github.com/apache/spark/pull/15738.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis adds support for Hive variables:\r\n\r\n* Makes values set via `spark-sql --hivevar name=value` accessible\r\n* Adds `getHiveVar` and `setHiveVar` to the `HiveClient` interface\r\n* Adds a SessionVariables trait for sessions like Hive that support variables (including Hive vars)\r\n* Adds SessionVariables support to variable substitution\r\n* Adds SessionVariables support to the SET command\r\n\r\n## How was this patch tested?\r\n\r\n* Adds a test to all supported Hive versions for accessing Hive variables\r\n* Adds HiveVariableSubstitutionSuite"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/258010471","html_url":"https://github.com/apache/spark/pull/15738#issuecomment-258010471","issue_url":"https://api.github.com/repos/apache/spark/issues/15738","id":258010471,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T21:52:24Z","updated_at":"2016-11-02T21:52:24Z","body":"**[Test build #68004 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/68004/consoleFull)** for PR 15738 at commit [`8c1b7b4`](https://github.com/apache/spark/commit/8c1b7b4be5dac861497a5f01f65037ef4a392a76).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds the following public classes _(experimental)_:\n  * `class SparkSqlParser(`\n  * `trait SessionVariables `\n  * `class VariableSubstitution(conf: SQLConf, sessionVariables: Option[SessionVariables] = None) `"}}
{"actor":{"display_login":"SparkQA"}}