Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16878#discussion_r100874425
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
 ---
    @@ -300,28 +306,34 @@ class CSVSuite extends QueryTest with 
SharedSQLContext with SQLTestUtils {
       }
     
       test("DDL test with empty file") {
    -    spark.sql(s"""
    -           |CREATE TEMPORARY TABLE carsTable
    +    withView("carsTable") {
    +      spark.sql(
    +        s"""
    +           |CREATE TEMPORARY VIEW carsTable
                |(yearMade double, makeName string, modelName string, comments 
string, grp string)
                |USING csv
                |OPTIONS (path "${testFile(emptyFile)}", header "false")
           """.stripMargin.replaceAll("\n", " "))
     
    -    assert(spark.sql("SELECT count(*) FROM carsTable").collect().head(0) 
=== 0)
    +      assert(spark.sql("SELECT count(*) FROM carsTable").collect().head(0) 
=== 0)
    +    }
       }
     
       test("DDL test with schema") {
    -    spark.sql(s"""
    -           |CREATE TEMPORARY TABLE carsTable
    +    withView("carsTable") {
    +      spark.sql(
    +        s"""
    +           |CREATE TEMPORARY VIEW carsTable
    --- End diff --
    
    the indention is wrong


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