gengliangwang commented on a change in pull request #24745: 
[SPARK-27849][SQL][FollowUp] Fix the testing regex in 
DataSourceScanRedactionTest
URL: https://github.com/apache/spark/pull/24745#discussion_r289052856
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/DataSourceScanExecRedactionSuite.scala
 ##########
 @@ -31,7 +31,7 @@ import org.apache.spark.sql.test.SharedSQLContext
 abstract class DataSourceScanRedactionTest extends QueryTest with 
SharedSQLContext {
 
   override protected def sparkConf: SparkConf = super.sparkConf
-    .set("spark.redaction.string.regex", "file:/[\\w-_@/]+")
+    .set("spark.redaction.string.regex", "file:/[^\\]\\s]+")
 
 Review comment:
   Actually matching `[^\\]]+` should be enough. Matching spaces also for 
double insurance. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to