Skip to content

Commit

Permalink
[SPARK-20487][SQL] Display serde for HiveTableScan node in explai…
Browse files Browse the repository at this point in the history
…ned plan
  • Loading branch information
tejasapatil committed Apr 28, 2017
1 parent 733b81b commit ffaec4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +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 table: CatalogTable => table.identifier :: table.storage.serde :: Nil
case other => other :: Nil
}.mkString(", ")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class HiveExplainSuite extends QueryTest with SQLTestUtils with TestHiveSingleto

test("explain extended command") {
checkKeywordsExist(sql(" explain select * from src where key=123 "),
"== Physical Plan ==")
"== Physical Plan ==",
"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")

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

0 comments on commit ffaec4d

Please sign in to comment.