Skip to content

Commit

Permalink
[SPARK-20487][SQL] HiveTableScan node is quite verbose in explained…
Browse files Browse the repository at this point in the history
… plan
  • Loading branch information
tejasapatil committed Apr 27, 2017
1 parent 66636ef commit 768738c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product {
case None => Nil
case Some(null) => Nil
case Some(any) => any :: Nil
case table: CatalogTable => table.identifier :: Nil
case other => other :: Nil
}.mkString(", ")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,23 @@ class HiveExplainSuite extends QueryTest with SQLTestUtils with TestHiveSingleto
checkKeywordsNotExist(sql(" explain select * from src where key=123 "),
"== Parsed Logical Plan ==",
"== Analyzed Logical Plan ==",
"== Optimized Logical Plan ==")
"== Optimized Logical Plan ==",
"Owner",
"Database",
"Created",
"Last Access",
"Type",
"Provider",
"Properties",
"Statistics",
"Location",
"Serde Library",
"InputFormat",
"OutputFormat",
"Partition Provider",
"Schema"
)

checkKeywordsExist(sql(" explain extended select * from src where key=123 "),
"== Parsed Logical Plan ==",
"== Analyzed Logical Plan ==",
Expand Down

0 comments on commit 768738c

Please sign in to comment.