Commit 28adc45
committed
[SPARK-12410][STREAMING] Fix places that use '.' and '|' directly in split
String.split accepts a regular expression, so we should escape "." and "|".
Author: Shixiong Zhu <[email protected]>
Closes #10361 from zsxwing/reg-bug.
(cherry picked from commit 540b5ae)
Signed-off-by: Shixiong Zhu <[email protected]>1 parent 43f02e4 commit 28adc45
File tree
2 files changed
+2
-2
lines changed- examples/src/main/scala/org/apache/spark/examples/ml
- streaming/src/main/scala/org/apache/spark/streaming/util
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
0 commit comments