dongjoon-hyun commented on a change in pull request #25335: 
[SPARK-28601][CORE][SQL][test-hadoop3.2] Use StandardCharsets.UTF_8 instead of 
"UTF-8" string representation, and get rid of UnsupportedEncodingException
URL: https://github.com/apache/spark/pull/25335#discussion_r310395522
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/package.scala
 ##########
 @@ -45,7 +46,7 @@ package object util extends Logging {
     }
   }
 
-  def fileToString(file: File, encoding: String = "UTF-8"): String = {
+  def fileToString(file: File, encoding: Charset = UTF_8): String = {
 
 Review comment:
   Ur, this is an exceptional function signature change which is different from 
the rest of this PR.
   Please mention this clearly in the PR description with the following code 
snippets.
   ```
   - def fileToString(file: File, encoding: String = "UTF-8"): String = {
   + def fileToString(file: File, encoding: Charset = UTF_8): String = {
   ```

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