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-564823870 No. UTF8String.fromBytes() dose not care what code it is, this option just copy bytes. And getBytes() also use the origin bytes without any code. So the second pipeline just bytes to bytes. This code can check this: ``` val hex = "AABBCC" val bs = org.apache.commons.codec.binary.Hex.decodeHex(hex.toCharArray) val newHex = org.apache.commons.codec.binary.Hex.encodeHexString(UTF8String.fromBytes(bs).getBytes).toUpperCase() assert(hex == newHex) // check the negative val newHex2 = org.apache.commons.codec.binary.Hex.encodeHexString(UTF8String.fromBytes(bs).toString.getBytes("UTF-8")).toUpperCase() assert(hex != newHex2) ```
---------------------------------------------------------------- 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]
