Skip to content

Commit

Permalink
[SPARK-20119][TEST-MAVEN] Fix the test case fail in DataSourceScanExe…
Browse files Browse the repository at this point in the history
…cRedactionSuite

### What changes were proposed in this pull request?
Changed the pattern to match the first n characters in the location field so that the string truncation does not affect it.

### How was this patch tested?
N/A

Author: Xiao Li <[email protected]>

Closes #17448 from gatorsmile/fixTestCAse.
  • Loading branch information
gatorsmile authored and hvanhovell committed Mar 28, 2017
1 parent 6c70a38 commit a9abff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DataSourceScanExecRedactionSuite extends QueryTest with SharedSQLContext {

override def beforeAll(): Unit = {
sparkConf.set("spark.redaction.string.regex",
"spark-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")
"file:/[\\w_]+")
super.beforeAll()
}

Expand Down

0 comments on commit a9abff2

Please sign in to comment.