Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/19571#discussion_r146752367
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala ---
@@ -252,6 +253,13 @@ private[orc] class OrcOutputWriter(
override def close(): Unit = {
if (recordWriterInstantiated) {
--- End diff --
Btw, according to the existing comment, seems that we can simply remove
`recordWriterInstantiated` to allow empty file created.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]