Skip to content

Commit

Permalink
Fixed explode compilation break.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Feb 13, 2015
1 parent fe1267a commit d941f3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class DataFrameSuite extends QueryTest {
}

test("simple explode") {
val df = Seq(Tuple1("a b c"), Tuple1("d e")).toDataFrame("words")
val df = Seq(Tuple1("a b c"), Tuple1("d e")).toDF("words")

checkAnswer(
df.explode("words", "word") { word: String => word.split(" ").toSeq }.select('word),
Expand All @@ -108,7 +108,7 @@ class DataFrameSuite extends QueryTest {
}

test("explode") {
val df = Seq((1, "a b c"), (2, "a b"), (3, "a")).toDataFrame("number", "letters")
val df = Seq((1, "a b c"), (2, "a b"), (3, "a")).toDF("number", "letters")
val df2 =
df.explode('letters) {
case Row(letters: String) => letters.split(" ").map(Tuple1(_)).toSeq
Expand Down

0 comments on commit d941f3d

Please sign in to comment.