GitHub user michalsenkyr opened a pull request:

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

    [SPARK-19089][SQL] Add support for nested sequences

    ## What changes were proposed in this pull request?
    
    Replaced specific sequence encoders with generic sequence encoder to enable 
nesting of sequences.
    
    Does not add support for nested arrays as that cannot be solved in this way.
    
    ## How was this patch tested?
    
    ```bash
    build/mvn -DskipTests clean package && dev/run-tests
    ```
    
    Additionally in Spark shell:
    
    ```
    scala> Seq(Seq(Seq(1))).toDS.collect()
    res0: Array[Seq[Seq[Int]]] = Array(List(List(1)))
    ```

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

    $ git pull https://github.com/michalsenkyr/spark dataset-seq-nested

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

    https://github.com/apache/spark/pull/18011.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 #18011
    
----
commit dd3bf0113cbf66ebf784f68d7f602c39f4a46b8b
Author: Michal Senkyr <[email protected]>
Date:   2017-05-17T00:18:41Z

    Replace specific sequence encoders with generic sequence encoder

----


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