cyanzheng2926 commented on code in PR #6559:
URL: https://github.com/apache/hive/pull/6559#discussion_r3463972543


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorAssignRow.java:
##########
@@ -465,7 +466,7 @@ private void assignRowColumn(
           {
             if (object instanceof String) {
               String string = (String) object;
-              byte[] bytes = string.getBytes();
+              byte[] bytes = string.getBytes(StandardCharsets.UTF_8);
               ((BytesColumnVector) columnVector).setVal(
                   batchIndex, bytes, 0, bytes.length);

Review Comment:
   For HIVE-28728 I kept scope to the STRING/String branch without touching 
VARCHAR/CHAR since GenericUDFStringToMap returns map<string,string> with 
javaStringObjectInspector, and vectorized STR_TO_MAP() should only hit case 
STRING. Updates to VARCHAR/CHAR paths can be followed up in a separate Jira



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

Reply via email to