dongjoon-hyun commented on a change in pull request #25335: [SPARK-28601][CORE] 
Use StandardCharsets.UTF_8 instead of "UTF-8" string representation
URL: https://github.com/apache/spark/pull/25335#discussion_r310197473
 
 

 ##########
 File path: 
sql/hive-thriftserver/v2.3.5/src/main/java/org/apache/hive/service/cli/operation/SQLOperation.java
 ##########
 @@ -373,7 +373,7 @@ private RowSet decodeFromString(List<Object> rows, RowSet 
rowSet)
     int protocol = getProtocolVersion().getValue();
     for (Object rowString : rows) {
       try {
-        rowObj = serde.deserialize(new 
BytesWritable(((String)rowString).getBytes("UTF-8")));
+        rowObj = serde.deserialize(new 
BytesWritable(((String)rowString).getBytes(StandardCharsets.UTF_8)));
       } catch (UnsupportedEncodingException e) {
 
 Review comment:
   Ur, @HeartSaVioR . Could you test this again, please?
   For me, it's used without a proper `import`. This will fail at compilation.

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