Skip to content

Commit 5f29551

Browse files
committed
modified: pkg/R/RDD.R
modified: pkg/R/context.R
1 parent bd6705b commit 5f29551

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

pkg/R/RDD.R

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,10 @@ setMethod("getJRDD", signature(rdd = "PipelinedRDD"),
110110
computeFunc <- function(split, part) {
111111
rdd@func(split, part)
112112
}
113-
serializedFuncArr <- serialize("computeFunc", connection = NULL,
114-
ascii = TRUE)
113+
serializedFuncArr <- serialize("computeFunc", connection = NULL)
115114

116115
packageNamesArr <- serialize(.sparkREnv[[".packages"]],
117-
connection = NULL,
118-
ascii = TRUE)
116+
connection = NULL)
119117

120118
broadcastArr <- lapply(ls(.broadcastNames),
121119
function(name) { get(name, .broadcastNames) })
@@ -1338,12 +1336,11 @@ setMethod("partitionBy",
13381336
depsBinArr <- getDependencies(partitionFunc)
13391337

13401338
serializedHashFuncBytes <- serialize(as.character(substitute(partitionFunc)),
1341-
connection = NULL,
1342-
ascii = TRUE)
1339+
connection = NULL)
13431340

13441341
packageNamesArr <- serialize(.sparkREnv$.packages,
1345-
connection = NULL,
1346-
ascii = TRUE)
1342+
connection = NULL)
1343+
13471344
broadcastArr <- lapply(ls(.broadcastNames), function(name) {
13481345
get(name, .broadcastNames) })
13491346
jrdd <- getJRDD(rdd)

pkg/R/context.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ includePackage <- function(sc, pkg) {
179179
#'}
180180
broadcast <- function(sc, object) {
181181
objName <- as.character(substitute(object))
182-
serializedObj <- serialize(object, connection = NULL, ascii = TRUE)
182+
serializedObj <- serialize(object, connection = NULL)
183183

184184
jBroadcast <- callJMethod(sc, "broadcast", serializedObj)
185185
id <- as.character(callJMethod(jBroadcast, "id"))

0 commit comments

Comments
 (0)