diff options
author | hyukjinkwon <gurwls223@gmail.com> | 2017-01-23 23:57:22 -0800 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2017-01-23 23:57:22 -0800 |
commit | ec9493b445cef512a3d64d6466ec7178cb01121f (patch) | |
tree | 83e4886a97710a70cc17afb16527164409a90878 /tools/pom.xml | |
parent | 60bd91a34078a9239fbf5e8f49ce8b680c11635d (diff) | |
download | spark-ec9493b445cef512a3d64d6466ec7178cb01121f.tar.gz spark-ec9493b445cef512a3d64d6466ec7178cb01121f.tar.bz2 spark-ec9493b445cef512a3d64d6466ec7178cb01121f.zip |
[SPARK-16101][HOTFIX] Fix the build with Scala 2.10 by explicit typed argument
## What changes were proposed in this pull request?
I goofed in https://github.com/apache/spark/pull/16669 which introduces the break in scala 2.10.
This fixes
```bash
[error] /home/jenkins/workspace/spark-master-compile-sbt-scala-2.10/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/UnivocityParser.scala:65: polymorphic expression cannot be instantiated to expected type;
[error] found : [B >: org.apache.spark.sql.types.StructField](B, Int) => Int
[error] required: org.apache.spark.sql.types.StructField => ?
[error] fields.map(schema.indexOf).toArray
[error] ^
[error] one error found
[error] (sql/compile:compileIncremental) Compilation failed
```
## How was this patch tested?
Manually via
```bash
./dev/change-scala-version.sh 2.10
./build/mvn -Pyarn -Phadoop-2.4 -Dscala-2.10 -DskipTests clean package
```
```
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 2.719 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 3.441 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 3.411 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 5.088 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 5.131 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 5.813 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 6.567 s]
[INFO] Spark Project Core ................................. SUCCESS [01:39 min]
[INFO] Spark Project ML Local Library ..................... SUCCESS [ 6.644 s]
[INFO] Spark Project GraphX ............................... SUCCESS [ 11.304 s]
[INFO] Spark Project Streaming ............................ SUCCESS [ 26.275 s]
[INFO] Spark Project Catalyst ............................. SUCCESS [01:04 min]
[INFO] Spark Project SQL .................................. SUCCESS [02:07 min]
[INFO] Spark Project ML Library ........................... SUCCESS [01:20 min]
[INFO] Spark Project Tools ................................ SUCCESS [ 8.755 s]
[INFO] Spark Project Hive ................................. SUCCESS [ 51.141 s]
[INFO] Spark Project REPL ................................. SUCCESS [ 13.688 s]
[INFO] Spark Project YARN Shuffle Service ................. SUCCESS [ 7.211 s]
[INFO] Spark Project YARN ................................. SUCCESS [ 10.908 s]
[INFO] Spark Project Assembly ............................. SUCCESS [ 2.940 s]
[INFO] Spark Project External Flume Sink .................. SUCCESS [ 4.386 s]
[INFO] Spark Project External Flume ....................... SUCCESS [ 8.589 s]
[INFO] Spark Project External Flume Assembly .............. SUCCESS [ 1.891 s]
[INFO] Spark Integration for Kafka 0.8 .................... SUCCESS [ 8.458 s]
[INFO] Spark Project Examples ............................. SUCCESS [ 17.706 s]
[INFO] Spark Project External Kafka Assembly .............. SUCCESS [ 3.070 s]
[INFO] Spark Integration for Kafka 0.10 ................... SUCCESS [ 11.227 s]
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SUCCESS [ 2.982 s]
[INFO] Kafka 0.10 Source for Structured Streaming ......... SUCCESS [ 7.494 s]
[INFO] Spark Project Java 8 Tests ......................... SUCCESS [ 3.748 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
```
and manual test `CSVSuite` with Scala 2.11 with my IDE.
Author: hyukjinkwon <gurwls223@gmail.com>
Closes #16684 from HyukjinKwon/hot-fix-type-ensurance.
Diffstat (limited to 'tools/pom.xml')
0 files changed, 0 insertions, 0 deletions