GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/12201

    [SPARK-14396] [Build] [HOT] Fix compilation against Scala 2.10

    #### What changes were proposed in this pull request?
    This PR is to fix the compilation errors in Scala 2.10 build, as shown in 
the link:
    
https://amplab.cs.berkeley.edu/jenkins/job/spark-master-compile-maven-scala-2.10/735/console
    ```
    [error] 
/home/jenkins/workspace/spark-master-compile-maven-scala-2.10/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala:266:
 value contains is not a member of Option[String]
    [error]     assert(desc.viewText.contains("SELECT * FROM tab1"))
    [error]                          ^
    [error] 
/home/jenkins/workspace/spark-master-compile-maven-scala-2.10/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala:267:
 value contains is not a member of Option[String]
    [error]     assert(desc.viewOriginalText.contains("SELECT * FROM tab1"))
    [error]                                  ^
    [error] 
/home/jenkins/workspace/spark-master-compile-maven-scala-2.10/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala:293:
 value contains is not a member of Option[String]
    [error]     assert(desc.viewText.contains("SELECT * FROM tab1"))
    [error]                          ^
    [error] 
/home/jenkins/workspace/spark-master-compile-maven-scala-2.10/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala:294:
 value contains is not a member of Option[String]
    [error]     assert(desc.viewOriginalText.contains("SELECT * FROM tab1"))
    [error]                                  ^
    [error] four errors found
    [error] Compile failed at Apr 5, 2016 10:59:09 PM [10.502s]
    ```
    
    #### How was this patch tested?
    Not sure how to trigger Scala 2.10 compilation in the test environment.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark buildBreak2.10

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12201.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 #12201
    
----
commit 4036cdd4c49f40305fbad795b81775eff48ec2a7
Author: gatorsmile <[email protected]>
Date:   2016-04-06T06:33:33Z

    build break.

----


---
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]

Reply via email to