Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
If we call DataSourceV2ScanExecBase redact method from a thread that don't have a session in thread local we get an NPE.
Changing
session.sessionState.conf.stringRedactionPattern
to
conf.stringRedactionPattern
could prevent this problem as conf checks if session is null or not.
In case of DataSourceScanExec we already use conf.stringRedactionPattern:
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala#L93-L95
Attachments
Issue Links
- links to