GitHub user HyukjinKwon opened a pull request:
https://github.com/apache/spark/pull/16684
[HOTFIX] Fix the build with Scala 2.10 by explicit typed argument
## What changes were proposed in this pull request?
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]
------------------------------------------------------------------------
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HyukjinKwon/spark hot-fix-type-ensurance
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16684.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16684
----
commit e56677d3623b712a1f16f00e840f54aac2adb1ef
Author: hyukjinkwon <[email protected]>
Date: 2017-01-23T22:45:44Z
Explicit type
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]