Skip to content

Commit

Permalink
[SPARK-48946][SQL] NPE in DataSourceV2ScanExecBase redact method when…
Browse files Browse the repository at this point in the history
… session is null
  • Loading branch information
mikoszilard committed Jul 19, 2024
1 parent af5eb08 commit bef7dec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ trait DataSourceV2ScanExecBase extends LeafExecNode {
* Shorthand for calling redact() without specifying redacting rules
*/
protected def redact(text: String): String = {
Utils.redact(session.sessionState.conf.stringRedactionPattern, text)
Utils.redact(conf.stringRedactionPattern, text)
}

override def verboseStringWithOperatorId(): String = {
Expand Down

0 comments on commit bef7dec

Please sign in to comment.