Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17397#discussion_r107714741
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala 
---
    @@ -41,9 +41,33 @@ trait DataSourceScanExec extends LeafExecNode with 
CodegenSupport {
       val relation: BaseRelation
       val metastoreTableIdentifier: Option[TableIdentifier]
     
    +  protected val nodeNamePrefix: String = ""
    +
       override val nodeName: String = {
         s"Scan $relation 
${metastoreTableIdentifier.map(_.unquotedString).getOrElse("")}"
       }
    +
    +  override def simpleString: String = {
    +    val metadataEntries = metadata.toSeq.sorted.map {
    +      case (key, value) =>
    +        key + ": " + StringUtils.abbreviate(redact(value), 100)
    +    }
    +    val metadataStr = Utils.truncatedString(metadataEntries, " ", ", ", "")
    +    s"$nodeNamePrefix$nodeName${Utils.truncatedString(output, "[", ",", 
"]")}$metadataStr"
    +  }
    +
    +  override def verboseString: String = redact(super.verboseString)
    +
    +  override def treeString(verbose: Boolean, addSuffix: Boolean): String = {
    +    redact(super.treeString(verbose, addSuffix))
    +  }
    +
    +  /**
    +   * Shorthand for calling redactString() without specifying redacting 
rules
    +   * */
    --- End diff --
    
    Nit: `* */` -> `*/`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to