HyukjinKwon commented on a change in pull request #26356: [SPARK-29707][SQL] 
Add configuration 'spark.sql.maxMetadataValueStringLength'
URL: https://github.com/apache/spark/pull/26356#discussion_r343001579
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
 ##########
 @@ -58,7 +58,8 @@ trait DataSourceScanExec extends LeafExecNode {
   override def simpleString(maxFields: Int): String = {
     val metadataEntries = metadata.toSeq.sorted.map {
       case (key, value) =>
-        key + ": " + StringUtils.abbreviate(redact(value), 100)
+        key + ": " + StringUtils.abbreviate(redact(value),
 
 Review comment:
   Can we replace this place with, for instance, `truncatedString` (see 
StructType.scala) and reuse `spark.sql.debug.maxToStringFields` configuration?

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