dongjoon-hyun commented on a change in pull request #28425:
URL: https://github.com/apache/spark/pull/28425#discussion_r453201940
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2ScanExecBase.scala
##########
@@ -43,7 +44,32 @@ trait DataSourceV2ScanExecBase extends LeafExecNode {
override def simpleString(maxFields: Int): String = {
val result =
s"$nodeName${truncatedString(output, "[", ", ", "]", maxFields)}
${scan.description()}"
- Utils.redact(sqlContext.sessionState.conf.stringRedactionPattern, result)
+ redact(result)
+ }
+
+ /**
+ * Redact the sensitive information in the given string.
+ */
+ protected def redact(text: String): String = {
Review comment:
~Do we need to declare as `protected`?~ Never mind.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]