You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by doanduyhai <gi...@git.apache.org> on 2015/06/02 22:32:19 UTC

[GitHub] incubator-zeppelin pull request: Add Scala utility functions for d...

Github user doanduyhai commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/80#issuecomment-108090033
  
    Ok, I have updated my commit with:
    
    1. A rebase from master to be up-to-date
    2. I also enhanced the code to accept not only RDDs but also **plain Scala collection** of Tuples/case class. So now you'll be able to do:
    
    ```scala
    List(
        Person("jdoe","John DOE",32),
        Person("hsue","Helen SUE",27),
        Person("rsmith","Richard SMITH",45)
    ).displayAsTable("Login","Name","Age")
    ```
    
    It just works with plain **Scala collection**, no need to transform them to an RDD by calling `sc.parallelize(myScalaCollection)`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---