File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -600,12 +600,12 @@ https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C
600600 NativePlaceholder
601601 } else {
602602 tableType match {
603- case Token (" TOK_TABTYPE" , Token (" TOK_TABNAME" , nameParts)) if nameParts.size == 1 => {
604- nameParts.head match {
603+ case Token (" TOK_TABTYPE" , Token (" TOK_TABNAME" , nameParts :: Nil ) :: Nil ) => {
604+ nameParts match {
605605 case Token (" ." , dbName :: tableName :: Nil ) =>
606606 // It is describing a table with the format like "describe db.table".
607607 // TODO: Actually, a user may mean tableName.columnName. Need to resolve this issue.
608- val tableIdent = extractTableIdent(nameParts.head )
608+ val tableIdent = extractTableIdent(nameParts)
609609 DescribeCommand (
610610 UnresolvedRelation (tableIdent, None ), isExtended = extended.isDefined)
611611 case Token (" ." , dbName :: tableName :: colName :: Nil ) =>
You can’t perform that action at this time.
0 commit comments