Skip to content

Commit

Permalink
[SPARK-22846][SQL] Fix table owner is null when creating table throug…
Browse files Browse the repository at this point in the history
…h spark sql or thriftserver

## What changes were proposed in this pull request?
fix table owner is null when create new table through spark sql

## How was this patch tested?
manual test.
1、first create a table
2、then select the table properties from mysql which connected to hive metastore

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: xu.wenchun <xu.wenchun@immomo.com>

Closes #20034 from BruceXu1991/SPARK-22846.
  • Loading branch information
xu.wenchun authored and cloud-fan committed Dec 27, 2017
1 parent 91d1b30 commit 6674acd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -186,7 +186,7 @@ private[hive] class HiveClientImpl(
/** Returns the configuration for the current session. */
def conf: HiveConf = state.getConf

private val userName = state.getAuthenticator.getUserName
private val userName = conf.getUser

override def getConf(key: String, defaultValue: String): String = {
conf.get(key, defaultValue)
Expand Down

0 comments on commit 6674acd

Please sign in to comment.