Github user yhuai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7986#discussion_r36549637
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveExplainSuite.scala
 ---
    @@ -74,4 +74,21 @@ class HiveExplainSuite extends QueryTest {
           "Limit",
           "src")
       }
    +
    +  test("SPARK-6212: The EXPLAIN output of CTAS only shows the analyzed 
plan") {
    +    checkExistence(sql(
    +      s"""
    +         |EXPLAIN EXTENDED
    +         |CREATE TABLE t1
    +         |AS
    +         |SELECT * FROM src
    +      """.stripMargin), true,
    +      "== Parsed Logical Plan ==",
    +      "== Analyzed Logical Plan ==",
    +      "== Optimized Logical Plan ==",
    +      "== Physical Plan ==",
    +      "CreateTableAsSelect",
    +      "InsertIntoHiveTable",
    +      "src")
    --- End diff --
    
    I feel this one is pretty much the same as the test in `explain create 
table command` (the above test). I think we need to have a test to make sure 
that the physical plan output string does not contain `Subquery`.


---
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]

Reply via email to