Github user sbcd90 commented on the pull request:

    https://github.com/apache/spark/pull/13257#issuecomment-220959617
  
    @HyukjinKwon, this PR exactly fixes that issue. If you test this PR with 
the sample code you provided in the JIRA ticket
    
    ```
    val conf = new SparkConf().setAppName("TestApp16").setMaster("local")
      val sc = new SparkContext(conf)
      val sqlContext = new SQLContext(sc)
    
      val path = new File("check.orc")
    
      val df = sqlContext.range(10).limit(0)
      df.write.format("orc").save(path.getCanonicalPath)
    ```
    you would find the empty schema being kept. I believe thats the only way to 
fix this issue.


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