Skip to content

Commit

Permalink
[SPARK-16939][SQL] Fix build error by using Tuple1 explicitly in St…
Browse files Browse the repository at this point in the history
…ringFunctionsSuite

## What changes were proposed in this pull request?

This PR aims to fix a build error on branch 1.6 at apache@8d87252, but I think we had better have this consistently in master branch, too. It's because there exist other ongoing PR (apache#14525) about this.

https://amplab.cs.berkeley.edu/jenkins/job/spark-branch-1.6-compile-maven-with-yarn-2.3/286/console

```scala
[error] /home/jenkins/workspace/spark-branch-1.6-compile-maven-with-yarn-2.3/sql/core/src/test/scala/org/apache/spark/sql/StringFunctionsSuite.scala:82: value toDF is not a member of Seq[String]
[error]     val df = Seq("aaaac").toDF("s")
[error]                           ^
```

## How was this patch tested?

After passing Jenkins, run compilation test on branch 1.6.
```
build/mvn -DskipTests -Pyarn -Phadoop-2.3 -Pkinesis-asl -Phive -Phive-thriftserver install
```

Author: Dongjoon Hyun <[email protected]>

Closes apache#14526 from dongjoon-hyun/SPARK-16939.
  • Loading branch information
dongjoon-hyun authored and srowen committed Aug 7, 2016
1 parent 8d87252 commit a16983c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class StringFunctionsSuite extends QueryTest with SharedSQLContext {
}

test("non-matching optional group") {
val df = Seq("aaaac").toDF("s")
val df = Seq(Tuple1("aaaac")).toDF("s")
checkAnswer(
df.select(regexp_extract($"s", "(a+)(b)?(c)", 2)),
Row("")
Expand Down

0 comments on commit a16983c

Please sign in to comment.