GitHub user sadhen opened a pull request:

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

    [MINOR] Fix scala 2.12 build using collect

    ## What changes were proposed in this pull request?
    Introduced by #21320 
    ```
    [error] [warn] 
spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:41:
 match may not be exhaustive.
    [error] It would fail on the following inputs: (_, ArrayType(_, _)), (_, _)
    [error] [warn]         getProjection(a.child).map(p => (p, p.dataType)).map 
{
    [error] [warn]
    [error] [warn] 
spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:52:
 match may not be exhaustive.
    [error] It would fail on the following input: (_, _)
    [error] [warn]         getProjection(child).map(p => (p, p.dataType)).map {
    [error] [warn]
    ```
    
    ```
    $ sbt
    > ++2.12.6
    > project sql
    > compile
    ```
    
    ## How was this patch tested?
    Existing tests.

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

    $ git pull https://github.com/sadhen/spark fix_exhaustive_match

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

    https://github.com/apache/spark/pull/22260.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 #22260
    
----
commit 626f26598ccfc692cca59e29a2d7861133654ef0
Author: 忍冬 <rendong@...>
Date:   2018-08-29T03:14:11Z

    Fix exhaustive match using collect

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to