GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/17397
[SPARK-20070][SQL] Redact DataSourceScanExec treeString
## What changes were proposed in this pull request?
The explain output of `DataSourceScanExec` can contain sensitive
information (like Amazon keys). Such information should not end up in logs, or
be exposed to non privileged users.
This PR addresses this by adding a redaction facility for the
`DataSourceScanExec.treeString`. A user can enable this by setting a regex in
the `spark.redaction.string.regex` configuration.
## How was this patch tested?
Added a unit test to check the output of DataSourceScanExec.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-20070
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17397.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17397
----
commit 2648ce5dd12defe83c42cfdbb9373e8c9e852308
Author: Herman van Hovell <[email protected]>
Date: 2017-03-23T12:04:27Z
Redact DataSourceScanExec output
----
---
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]