dongjoon-hyun commented on code in PR #42416:
URL: https://github.com/apache/spark/pull/42416#discussion_r1289212677
##########
core/src/main/scala/org/apache/spark/metrics/sink/StatsdSink.scala:
##########
@@ -53,9 +56,18 @@ private[spark] class StatsdSink(
val prefix = property.getProperty(STATSD_KEY_PREFIX, STATSD_DEFAULT_PREFIX)
+ val filter = propertyToOption(STATSD_KEY_REGEX) match {
Review Comment:
And, maybe the following?
```scala
- val filter = propertyToOption(STATSD_KEY_REGEX) match {
+ val filter = Option(property.getProperty(STATSD_KEY_REGEX)) match {
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]