Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19521
  
    We can save an empty DataFrame as an ORC table, but we are unable to fetch 
it from the table. 
    
    ```Scala
          val rddNoCols = sparkContext.parallelize(1 to 10).map(_ => Row.empty)
          val dfNoCols = spark.createDataFrame(rddNoCols, StructType(Seq.empty))
          dfNoCols.write.format("orc").saveAsTable("t")
          spark.sql("select 1 from t").show()
    ```
    
    This is not related to this upgrade, but you might be interested in this.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to