Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/13727
  
    The following test case is for SPARK-16007. I can confirm this PR already 
fixes the issue.
    ```scala
      test("schema checking") {
        val schema: StructType = new StructType().add("s", "string")
        assert(spark.read.schema(schema).csv().schema === schema)
        assert(spark.read.schema(schema).json().schema === schema)
        assert(spark.read.schema(schema).parquet().schema === schema)
        assert(spark.read.schema(schema).text().schema === schema)
        assert(spark.read.schema(schema).orc().schema === schema)
      }
    ```
    
    Since the ORC data source must be used with Hive support enabled, you can 
comment the last line out. Or move it to another test case in Hive. 
    
    Please let me know if anything is needed. Thanks!


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