dengziming commented on code in PR #43597:
URL: https://github.com/apache/spark/pull/43597#discussion_r1377136420
##########
examples/src/main/r/streaming/structured_network_wordcount.R:
##########
@@ -44,7 +44,7 @@ port <- as.integer(args[[2]])
lines <- read.stream("socket", host = hostname, port = port)
# Split the lines into words
-words <- selectExpr(lines, "explode(split(value, ' ')) as word")
+words <- selectExpr(lines, "explode(strsplit(value, '\\s+')) as word")
Review Comment:
Not sure is this the right semantics for R, can someone help to verify?
--
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]