Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/3941#discussion_r22741136
--- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala ---
@@ -386,6 +386,13 @@ private[hive] object HiveQl {
(db, tableName)
}
+ protected def extractTableIdent(tableNameParts: Node):
IndexedSeq[String] = {
+ tableNameParts.getChildren.map { case Token(part, Nil) =>
cleanIdentifier(part) } match {
+ case Seq(tableOnly) => IndexedSeq(tableOnly)
+ case Seq(databaseName, table) => IndexedSeq(table, databaseName)
--- End diff --
I'd add a default case here that does something like `case other =>
sys.error(s"Hive only supports tables names like 'tableName' or
'databaseName.tableName', found '$other'")`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]