Skip to content

Commit 1930e67

Browse files
author
Robert Kruszewski
committed
Resolve conflicts
1 parent 8f56734 commit 1930e67

File tree

52 files changed

+244
-1245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+244
-1245
lines changed

R/pkg/NAMESPACE

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,9 @@ exportMethods("%<=>%",
205205
"array_max",
206206
"array_min",
207207
"array_position",
208-
<<<<<<< HEAD
209-
"array_sort",
210-
=======
211208
"array_repeat",
212209
"array_sort",
213210
"arrays_overlap",
214-
>>>>>>> master
215211
"asc",
216212
"ascii",
217213
"asin",

R/pkg/R/client.R

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ generateSparkSubmitArgs <- function(args, sparkHome, jars, sparkSubmitOpts, pack
6363
checkJavaVersion <- function() {
6464
javaBin <- "java"
6565
javaHome <- Sys.getenv("JAVA_HOME")
66-
<<<<<<< HEAD
67-
javaReqs <- utils::packageDescription(utils::packageName(), fields=c("SystemRequirements"))
68-
=======
6966
javaReqs <- utils::packageDescription(utils::packageName(), fields = c("SystemRequirements"))
70-
>>>>>>> master
7167
sparkJavaVersion <- as.numeric(tail(strsplit(javaReqs, "[(=)]")[[1]], n = 1L))
7268
if (javaHome != "") {
7369
javaBin <- file.path(javaHome, "bin", javaBin)
@@ -94,12 +90,8 @@ checkJavaVersion <- function() {
9490
# Extract 8 from it to compare to sparkJavaVersion
9591
javaVersionNum <- as.integer(strsplit(javaVersionStr, "[.]")[[1L]][2])
9692
if (javaVersionNum != sparkJavaVersion) {
97-
<<<<<<< HEAD
98-
stop(paste("Java version", sparkJavaVersion, "is required for this package; found version:", javaVersionStr))
99-
=======
10093
stop(paste("Java version", sparkJavaVersion, "is required for this package; found version:",
10194
javaVersionStr))
102-
>>>>>>> master
10395
}
10496
}
10597

R/pkg/R/functions.R

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,7 @@ NULL
208208
#' tmp <- mutate(df, v1 = create_array(df$mpg, df$cyl, df$hp))
209209
#' head(select(tmp, array_contains(tmp$v1, 21), size(tmp$v1)))
210210
#' head(select(tmp, array_max(tmp$v1), array_min(tmp$v1)))
211-
<<<<<<< HEAD
212-
#' head(select(tmp, array_position(tmp$v1, 21), array_sort(tmp$v1)))
213-
=======
214211
#' head(select(tmp, array_position(tmp$v1, 21), array_repeat(df$mpg, 3), array_sort(tmp$v1)))
215-
>>>>>>> master
216212
#' head(select(tmp, flatten(tmp$v1), reverse(tmp$v1)))
217213
#' tmp2 <- mutate(tmp, v2 = explode(tmp$v1))
218214
#' head(tmp2)
@@ -221,22 +217,13 @@ NULL
221217
#' head(select(tmp, sort_array(tmp$v1)))
222218
#' head(select(tmp, sort_array(tmp$v1, asc = FALSE)))
223219
#' tmp3 <- mutate(df, v3 = create_map(df$model, df$cyl))
224-
<<<<<<< HEAD
225-
#' head(select(tmp3, map_keys(tmp3$v3)))
226-
#' head(select(tmp3, map_values(tmp3$v3)))
227-
#' head(select(tmp3, element_at(tmp3$v3, "Valiant")))
228-
#' tmp4 <- mutate(df, v4 = create_array(df$mpg, df$cyl), v5 = create_array(df$hp))
229-
#' head(select(tmp4, concat(tmp4$v4, tmp4$v5)))
230-
#' head(select(tmp, concat(df$mpg, df$cyl, df$hp)))}
231-
=======
232220
#' head(select(tmp3, map_entries(tmp3$v3), map_keys(tmp3$v3), map_values(tmp3$v3)))
233221
#' head(select(tmp3, element_at(tmp3$v3, "Valiant")))
234222
#' tmp4 <- mutate(df, v4 = create_array(df$mpg, df$cyl), v5 = create_array(df$cyl, df$hp))
235223
#' head(select(tmp4, concat(tmp4$v4, tmp4$v5), arrays_overlap(tmp4$v4, tmp4$v5)))
236224
#' head(select(tmp, concat(df$mpg, df$cyl, df$hp)))
237225
#' tmp5 <- mutate(df, v6 = create_array(df$model, df$model))
238226
#' head(select(tmp5, array_join(tmp5$v6, "#"), array_join(tmp5$v6, "#", "NULL")))}
239-
>>>>>>> master
240227
NULL
241228

242229
#' Window functions for Column operations
@@ -1991,7 +1978,7 @@ setMethod("levenshtein", signature(y = "Column"),
19911978
})
19921979

19931980
#' @details
1994-
#' \code{months_between}: Returns number of months between dates \code{y} and \code{x}.
1981+
#' \code{months_between}: Returns number of months between dates \code{y} and \code{x}.
19951982
#' If \code{y} is later than \code{x}, then the result is positive. If \code{y} and \code{x}
19961983
#' are on the same day of month, or both are the last day of month, time of day will be ignored.
19971984
#' Otherwise, the difference is calculated based on 31 days per month, and rounded to 8 digits.
@@ -3085,8 +3072,6 @@ setMethod("array_position",
30853072
})
30863073

30873074
#' @details
3088-
<<<<<<< HEAD
3089-
=======
30903075
#' \code{array_repeat}: Creates an array containing \code{x} repeated the number of times
30913076
#' given by \code{count}.
30923077
#'
@@ -3107,7 +3092,6 @@ setMethod("array_repeat",
31073092
})
31083093

31093094
#' @details
3110-
>>>>>>> master
31113095
#' \code{array_sort}: Sorts the input array in ascending order. The elements of the input array
31123096
#' must be orderable. NA elements will be placed at the end of the returned array.
31133097
#'
@@ -3122,8 +3106,6 @@ setMethod("array_sort",
31223106
})
31233107

31243108
#' @details
3125-
<<<<<<< HEAD
3126-
=======
31273109
#' \code{arrays_overlap}: Returns true if the input arrays have at least one non-null element in
31283110
#' common. If not and both arrays are non-empty and any of them contains a null, it returns null.
31293111
#' It returns false otherwise.
@@ -3139,7 +3121,6 @@ setMethod("arrays_overlap",
31393121
})
31403122

31413123
#' @details
3142-
>>>>>>> master
31433124
#' \code{flatten}: Creates a single array from an array of arrays.
31443125
#' If a structure of nested arrays is deeper than two levels, only one level of nesting is removed.
31453126
#'
@@ -3239,13 +3220,8 @@ setMethod("size",
32393220
#' (or starting from the end if start is negative) with the specified length.
32403221
#'
32413222
#' @rdname column_collection_functions
3242-
<<<<<<< HEAD
3243-
#' @param start an index indicating the first element occuring in the result.
3244-
#' @param length a number of consecutive elements choosen to the result.
3245-
=======
32463223
#' @param start an index indicating the first element occurring in the result.
32473224
#' @param length a number of consecutive elements chosen to the result.
3248-
>>>>>>> master
32493225
#' @aliases slice slice,Column-method
32503226
#' @note slice since 2.4.0
32513227
setMethod("slice",

R/pkg/R/generics.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,6 @@ setGeneric("array_position", function(x, value) { standardGeneric("array_positio
775775

776776
#' @rdname column_collection_functions
777777
#' @name NULL
778-
<<<<<<< HEAD
779-
setGeneric("array_sort", function(x) { standardGeneric("array_sort") })
780-
781-
=======
782778
setGeneric("array_repeat", function(x, count) { standardGeneric("array_repeat") })
783779

784780
#' @rdname column_collection_functions
@@ -789,7 +785,6 @@ setGeneric("array_sort", function(x) { standardGeneric("array_sort") })
789785
#' @name NULL
790786
setGeneric("arrays_overlap", function(x, y) { standardGeneric("arrays_overlap") })
791787

792-
>>>>>>> master
793788
#' @rdname column_string_functions
794789
#' @name NULL
795790
setGeneric("ascii", function(x) { standardGeneric("ascii") })

R/pkg/tests/fulltests/test_sparkSQL.R

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,8 +1503,6 @@ test_that("column functions", {
15031503
result <- collect(select(df2, reverse(df2[[1]])))[[1]]
15041504
expect_equal(result, "cba")
15051505

1506-
<<<<<<< HEAD
1507-
=======
15081506
# Test array_repeat()
15091507
df <- createDataFrame(list(list("a", 3L), list("b", 2L)))
15101508
result <- collect(select(df, array_repeat(df[[1]], df[[2]])))[[1]]
@@ -1535,7 +1533,6 @@ test_that("column functions", {
15351533
result <- collect(select(df3, array_join(df3[[1]], "#")))[[1]]
15361534
expect_equal(result, "Hello#World!")
15371535

1538-
>>>>>>> master
15391536
# Test array_sort() and sort_array()
15401537
df <- createDataFrame(list(list(list(2L, 1L, 3L, NA)), list(list(NA, 6L, 5L, NA, 4L))))
15411538

@@ -1551,23 +1548,13 @@ test_that("column functions", {
15511548
df <- createDataFrame(list(list(list(1L, 2L, 3L)), list(list(4L, 5L))))
15521549
result <- collect(select(df, slice(df[[1]], 2L, 2L)))[[1]]
15531550
expect_equal(result, list(list(2L, 3L), list(5L)))
1554-
<<<<<<< HEAD
15551551

15561552
# Test concat()
15571553
df <- createDataFrame(list(list(list(1L, 2L, 3L), list(4L, 5L, 6L)),
15581554
list(list(7L, 8L, 9L), list(10L, 11L, 12L))))
15591555
result <- collect(select(df, concat(df[[1]], df[[2]])))[[1]]
15601556
expect_equal(result, list(list(1L, 2L, 3L, 4L, 5L, 6L), list(7L, 8L, 9L, 10L, 11L, 12L)))
15611557

1562-
=======
1563-
1564-
# Test concat()
1565-
df <- createDataFrame(list(list(list(1L, 2L, 3L), list(4L, 5L, 6L)),
1566-
list(list(7L, 8L, 9L), list(10L, 11L, 12L))))
1567-
result <- collect(select(df, concat(df[[1]], df[[2]])))[[1]]
1568-
expect_equal(result, list(list(1L, 2L, 3L, 4L, 5L, 6L), list(7L, 8L, 9L, 10L, 11L, 12L)))
1569-
1570-
>>>>>>> master
15711558
# Test flatten()
15721559
df <- createDataFrame(list(list(list(list(1L, 2L), list(3L, 4L))),
15731560
list(list(list(5L, 6L), list(7L, 8L)))))

build/mvn

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,4 @@ export MAVEN_OPTS=${MAVEN_OPTS:-"$_COMPILE_JVM_OPTS"}
150150
echo "Using \`mvn\` from path: $MVN_BIN" 1>&2
151151

152152
# Last, call the `mvn` command as usual
153-
<<<<<<< HEAD
154-
${MVN_BIN} -DzincPort=${ZINC_PORT} -e "$@"
155-
=======
156-
"${MVN_BIN}" -DzincPort=${ZINC_PORT} "$@"
157-
>>>>>>> master
153+
"${MVN_BIN}" -DzincPort=${ZINC_PORT} -e "$@"

core/src/main/scala/org/apache/spark/scheduler/OutputCommitCoordinator.scala

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -182,32 +182,6 @@ private[spark] class OutputCommitCoordinator(conf: SparkConf, isDriver: Boolean)
182182
s"task attempt $attemptNumber already marked as failed.")
183183
false
184184
case Some(state) =>
185-
<<<<<<< HEAD
186-
state.authorizedCommitters(partition) match {
187-
case NO_AUTHORIZED_COMMITTER =>
188-
logDebug(s"Authorizing attemptNumber=$attemptNumber to commit for stage=$stage, " +
189-
s"partition=$partition")
190-
state.authorizedCommitters(partition) = attemptNumber
191-
true
192-
case existingCommitter if existingCommitter == attemptNumber =>
193-
logWarning(s"Authorizing duplicate request to commit for " +
194-
s"attemptNumber=$attemptNumber to commit for stage=$stage, partition=$partition; " +
195-
s"existingCommitter = $existingCommitter. This can indicate dropped network traffic.")
196-
true
197-
case existingCommitter =>
198-
// Coordinator should be idempotent when receiving AskPermissionToCommit.
199-
if (existingCommitter == attemptNumber) {
200-
logWarning(s"Authorizing duplicate request to commit for " +
201-
s"attemptNumber=$attemptNumber to commit for stage=$stage," +
202-
s" partition=$partition; existingCommitter = $existingCommitter." +
203-
s" This can indicate dropped network traffic.")
204-
true
205-
} else {
206-
logDebug(s"Denying attemptNumber=$attemptNumber to commit for stage=$stage, " +
207-
s"partition=$partition; existingCommitter = $existingCommitter")
208-
false
209-
}
210-
=======
211185
val existing = state.authorizedCommitters(partition)
212186
if (existing == null) {
213187
logDebug(s"Commit allowed for stage=$stage.$stageAttempt, partition=$partition, " +
@@ -218,7 +192,6 @@ private[spark] class OutputCommitCoordinator(conf: SparkConf, isDriver: Boolean)
218192
logDebug(s"Commit denied for stage=$stage.$stageAttempt, partition=$partition: " +
219193
s"already committed by $existing")
220194
false
221-
>>>>>>> master
222195
}
223196
case None =>
224197
logDebug(s"Commit denied for stage=$stage.$stageAttempt, partition=$partition: " +

0 commit comments

Comments
 (0)