Github user gatorsmile commented on the issue:
https://github.com/apache/spark/pull/17397
Maybe we can verify the user input or capture the exception? If users input
incorrect value, it could get a confusing error message.
```
Unclosed group near index 19
spark-~!@#$%^^&*(12
^
java.util.regex.PatternSyntaxException: Unclosed group near index 19
spark-~!@#$%^^&*(12
^
at java.util.regex.Pattern.error(Pattern.java:1955)
at java.util.regex.Pattern.accept(Pattern.java:1813)
at java.util.regex.Pattern.group0(Pattern.java:2908)
at java.util.regex.Pattern.sequence(Pattern.java:2051)
at java.util.regex.Pattern.expr(Pattern.java:1996)
at java.util.regex.Pattern.compile(Pattern.java:1696)
at java.util.regex.Pattern.<init>(Pattern.java:1351)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at scala.util.matching.Regex.<init>(Regex.scala:191)
at scala.collection.immutable.StringLike$class.r(StringLike.scala:255)
at scala.collection.immutable.StringOps.r(StringOps.scala:29)
at scala.collection.immutable.StringLike$class.r(StringLike.scala:244)
at scala.collection.immutable.StringOps.r(StringOps.scala:29)
at org.apache.spark.util.Utils$.redact(Utils.scala:2605)
at
org.apache.spark.sql.execution.DataSourceScanExec$class.org$apache$spark$sql$execution$DataSourceScanExec$$redact(DataSourceScanExec.scala:69)
at
org.apache.spark.sql.execution.DataSourceScanExec$$anonfun$3.apply(DataSourceScanExec.scala:53)
at
org.apache.spark.sql.execution.DataSourceScanExec$$anonfun$3.apply(DataSourceScanExec.scala:51)
```
---
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]