Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/20034#discussion_r158332740
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
---
@@ -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
--- End diff --
@BruceXu1991. I want to reproduce your problem here. Could you describe
your environment more specifically? For me, 2.2.1 works like the following.
```scala
scala> spark.version
res0: String = 2.2.1
scala> sql("CREATE TABLE spark_22846(a INT)")
scala> sql("DESCRIBE FORMATTED spark_22846").show
+--------------------+--------------------+-------+
| col_name| data_type|comment|
+--------------------+--------------------+-------+
| a| int| null|
| | | |
|# Detailed Table ...| | |
| Database| default| |
| Table| spark_22846| |
| Owner| dongjoon| |
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]