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

    https://github.com/apache/spark/pull/11194#discussion_r52841904
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
 ---
    @@ -387,4 +387,16 @@ class CSVSuite extends QueryTest with SharedSQLContext 
with SQLTestUtils {
           verifyCars(carsCopy, withHeader = true)
         }
       }
    +
    +  test("Schema inference correctly identifies the datatype when data is 
sparse.") {
    +    val df = sqlContext.read
    +      .format("csv")
    +      .option("header", "true")
    +      .option("inferSchema", "true")
    +      .load(testFile(simpleSparseFile))
    +
    +    assert(
    +      df.schema.fields.map{field => field.dataType}.deep ==
    --- End diff --
    
    A little nit (maybe only for me) but how about using `()` instead of `{}`? 
I see the `{}` has been used with some indentations and new lines in Spark 
codes.


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