[ 
https://issues.apache.org/jira/browse/SPARK-39296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542315#comment-17542315
 ] 

Apache Spark commented on SPARK-39296:
--------------------------------------

User 'LuciferYang' has created a pull request for this issue:
https://github.com/apache/spark/pull/36677

> Replcace `Array.toString` with `Array.mkString`
> -----------------------------------------------
>
>                 Key: SPARK-39296
>                 URL: https://issues.apache.org/jira/browse/SPARK-39296
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core, SQL
>    Affects Versions: 3.4.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> Some code in Spark as follows:
> {code:java}
> val appDirs = workDir.listFiles()
> if (appDirs == null) {
>   throw new IOException("ERROR: Failed to list files in " + appDirs)
> } {code}
> appDirs is an `Array` and `Array.toString` will print as 
> `className#hashCode`, this result seems meaningless and  Array.mkString 
> should be used.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to