cloud-fan commented on a change in pull request #26831: [SPARK-30201][SQL]
HiveOutputWriter standardOI should use ObjectInspectorCopyOption.DEFAULT
URL: https://github.com/apache/spark/pull/26831#discussion_r357038778
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveFileFormat.scala
##########
@@ -133,7 +133,7 @@ class HiveOutputWriter(
private val standardOI = ObjectInspectorUtils
.getStandardObjectInspector(
tableDesc.getDeserializer(jobConf).getObjectInspector,
- ObjectInspectorCopyOption.JAVA)
+ ObjectInspectorCopyOption.DEFAULT)
Review comment:
ah I see. Can you add some comments here? Saying that the `DEFAULT` mode
indicates Spark to create Text with the bytes of `UTF8String`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]