ulysses-you edited a comment on issue #26831: [SPARK-30201][SQL] 
HiveOutputWriter standardOI should use ObjectInspectorCopyOption.DEFAULT
URL: https://github.com/apache/spark/pull/26831#issuecomment-564792037
 
 
   Actually, we also do the same option in hive, and hive is correct. Then we 
find the problem is spark use JAVA option which is a fixed option. 
   
   So the root cause is the JAVA option always convert `UTF8String` to `String` 
instead of convert `UTF8String` to `Text`.
   
   BTW Hive `Text` and Spark `UTF8String` has the same processing mode with 
UTF8 code that copy bytes directly and to UTF8 String lazily (invoke toString 
or other method). It means it is possible to pass bytes in any code although it 
is not we expect.

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

Reply via email to