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

    https://github.com/apache/spark/pull/17670#discussion_r112366125
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala 
---
    @@ -2606,4 +2607,15 @@ class SQLQuerySuite extends QueryTest with 
SharedSQLContext {
           case ae: AnalysisException => assert(ae.plan == null && 
ae.getMessage == ae.getSimpleMessage)
         }
       }
    +
    +  test("SPARK-20281 Print the identical range parameters of SparkContext 
and SQL in EXPLAIN") {
    +    def explainStr(df: DataFrame): String = {
    +      val explain = ExplainCommand(df.queryExecution.logical, extended = 
false)
    +      val sparkPlan = spark.sessionState.executePlan(explain).executedPlan
    +      
sparkPlan.executeCollect().map(_.getString(0).trim).headOption.getOrElse("")
    +    }
    +    val scRange = sqlContext.range(10)
    +    val sqlRange = sqlContext.sql("SELECT * FROM range(10)")
    +    assert(explainStr(scRange) === explainStr(sqlRange))
    +  }
    --- End diff --
    
    I think this test case is not needed. 


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