{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15466","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15466/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15466/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15466/events","html_url":"https://github.com/apache/spark/pull/15466","id":182822052,"number":15466,"title":"[SPARK-13983][SQL] HiveThriftServer2 can not get \"--hiveconf\" or ''--hivevar\" variables since 1.6 version (both multi-session and single session)","user":{"login":"wangyum","id":5399861,"avatar_url":"https://avatars.githubusercontent.com/u/5399861?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyum","html_url":"https://github.com/wangyum","followers_url":"https://api.github.com/users/wangyum/followers","following_url":"https://api.github.com/users/wangyum/following{/other_user}","gists_url":"https://api.github.com/users/wangyum/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyum/subscriptions","organizations_url":"https://api.github.com/users/wangyum/orgs","repos_url":"https://api.github.com/users/wangyum/repos","events_url":"https://api.github.com/users/wangyum/events{/privacy}","received_events_url":"https://api.github.com/users/wangyum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-13T15:27:37Z","updated_at":"2016-10-13T16:06:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15466","html_url":"https://github.com/apache/spark/pull/15466","diff_url":"https://github.com/apache/spark/pull/15466.diff","patch_url":"https://github.com/apache/spark/pull/15466.patch"},"body":"## What changes were proposed in this pull request?\r\nWe can't get variables like [this](https://github.com/pwendell/hive/blob/release-1.2.1-spark/ql/src/java/org/apache/hadoop/hive/ql/parse/VariableSubstitution.java#L38) after [SPARK-10810](https://issues.apache.org/jira/browse/SPARK-10810). but based on one SQLContext per session,  we can set variables to SQLContext. this is similar to [SPARK-15730](https://issues.apache.org/jira/browse/SPARK-15730)\r\n Thus, this PR is to set `--hivevar` and `--hiveconf` variables to `SQLContext` and then `VariableSubstitution` can substitution these variables.\r\n\r\n## How was this patch tested?\r\nAdded test cases for spark-sql\r\nand manual test beeline"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/253559461","html_url":"https://github.com/apache/spark/pull/15466#issuecomment-253559461","issue_url":"https://api.github.com/repos/apache/spark/issues/15466","id":253559461,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:06:43Z","updated_at":"2016-10-13T16:06:43Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/66896/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}