sarutak commented on a change in pull request #34184:
URL: https://github.com/apache/spark/pull/34184#discussion_r723903442
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala
##########
@@ -90,8 +92,6 @@ class OrcFileFormat
val conf = job.getConfiguration
- conf.set(MAPRED_OUTPUT_SCHEMA.getAttribute,
OrcFileFormat.getQuotedSchemaString(dataSchema))
-
Review comment:
Setting schema with `MAPRED_OUTPUT_SCHEMA` seems not to be able to
consider ORC's attribute.
So, this change sets the schema with an alternative way.
https://github.com/apache/spark/pull/34184/files#diff-2b10e612920887595624d5f9844bf970e5b194dbf28d528a7f051c7ce4005867R47
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]