diff options
author | Xiao Li <gatorsmile@gmail.com> | 2017-03-28 09:37:28 +0200 |
---|---|---|
committer | Herman van Hovell <hvanhovell@databricks.com> | 2017-03-28 09:37:28 +0200 |
commit | a9abff281bcb15fdc91111121c8bcb983a9d91cb (patch) | |
tree | 3e5ba18a50ad43530202ce8ee26dc0b5b1f96511 /sql/core | |
parent | 6c70a38c2e60e1b69a310aee1a92ee0b3815c02d (diff) | |
download | spark-a9abff281bcb15fdc91111121c8bcb983a9d91cb.tar.gz spark-a9abff281bcb15fdc91111121c8bcb983a9d91cb.tar.bz2 spark-a9abff281bcb15fdc91111121c8bcb983a9d91cb.zip |
[SPARK-20119][TEST-MAVEN] Fix the test case fail in DataSourceScanExecRedactionSuite
### 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 <gatorsmile@gmail.com>
Closes #17448 from gatorsmile/fixTestCAse.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala index 986fa878ee..05a2b2c862 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala @@ -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() } |