We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f408912 commit a6721caCopy full SHA for a6721ca
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
@@ -574,7 +574,7 @@ private[hive] class HiveClientImpl(
574
// If users explicitly alter these Hive-specific properties through ALTER TABLE DDL, we respect
575
// these user-specified values.
576
verifyColumnDataType(table.dataSchema)
577
- val owner = if (StringUtils.isEmpty(table.owner)) userName else table.owner
+ val owner = Option(table.owner).filter(_.nonEmpty).getOrElse(userName)
578
val hiveTable = toHiveTable(
579
table.copy(properties = table.ignoredProperties ++ table.properties), Some(owner))
580
// Do not use `table.qualifiedName` here because this may be a rename
0 commit comments