You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by tinkoff-dwh <gi...@git.apache.org> on 2017/03/13 12:21:44 UTC

[GitHub] zeppelin pull request #2129: [ZEPPELIN-2252] discreteness of line charts

GitHub user tinkoff-dwh opened a pull request:

    https://github.com/apache/zeppelin/pull/2129

    [ZEPPELIN-2252] discreteness of line charts

    ### What is this PR for?
    Added a discreteness in the line chart. Correcting the display of the chart, when the values does not exist at the point (by default Y is set to 0, at the moment). A value of 0 is unclear (it is real value from data or it is default value).
    
    ### What type of PR is it?
    Improvement
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-2252
    
    ### How should this be tested?
    1. Spark interpreter
    ```
    var text = """g1,1
    g1,1
    g1,2
    g1,3
    g1,5
    g1,5
    g2,1
    g2,1
    g2,2
    g2,2
    g2,6
    g2,6
    g2,7
    g2,7
    g2,7"""
    
    val array = sc.parallelize(text.split("\n"))
    
    case class Line(group: String, value: Integer)
    
    val line = array.map(s => s.split(",")).map(
        s => Line(s(0), 
                s(1).toInt
            )
    ).toDF()
    line.registerTempTable("lines")```
    2.
    ```
    %sql
    select *from lines
    ```
    Settings of chart on screenshot
    ### Screenshots (if appropriate)
    before
    ![2](https://cloud.githubusercontent.com/assets/25951039/23853622/364b74a0-080f-11e7-9860-c7de95bc1507.png)
    after
    ![1](https://cloud.githubusercontent.com/assets/25951039/23853621/364936b8-080f-11e7-9ac6-bbbdd8235be3.png)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


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

    $ git pull https://github.com/tinkoff-dwh/zeppelin ZEPPELIN-2252

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

    https://github.com/apache/zeppelin/pull/2129.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 #2129
    
----
commit be34560e98bd6d58f4083f7611430924b6c6ebdf
Author: Tinkoff DWH <ti...@gmail.com>
Date:   2017-03-13T10:48:23Z

    [ZEPPELIN-2252] discreteness of line charts

----


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

[GitHub] zeppelin pull request #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/zeppelin/pull/2129


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

[GitHub] zeppelin pull request #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
GitHub user tinkoff-dwh reopened a pull request:

    https://github.com/apache/zeppelin/pull/2129

    [ZEPPELIN-2252] discreteness of line charts

    ### What is this PR for?
    Added a discreteness in the line chart. Correcting the display of the chart, when the values does not exist at the point (by default Y is set to 0, at the moment). A value of 0 is unclear (it is real value from data or it is default value).
    
    ### What type of PR is it?
    Improvement
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-2252
    
    ### How should this be tested?
    1. Spark interpreter
    ```
    var text = """g1,1
    g1,1
    g1,2
    g1,3
    g1,5
    g1,5
    g2,1
    g2,1
    g2,2
    g2,2
    g2,6
    g2,6
    g2,7
    g2,7
    g2,7"""
    
    val array = sc.parallelize(text.split('\n'))
    
    case class Line(group: String, value: Integer)
    
    val line = array.map(s => s.split(",")).map(
        s => Line(s(0), 
                s(1).toInt
            )
    ).toDF()
    line.registerTempTable("lines")
    ```
    2.
    ```
    %sql
    select *from lines
    ```
    Settings of chart on screenshot
    
    ### Screenshots (if appropriate)
    before
    ![2](https://cloud.githubusercontent.com/assets/25951039/23853622/364b74a0-080f-11e7-9860-c7de95bc1507.png)
    after
    ![1](https://cloud.githubusercontent.com/assets/25951039/23853621/364936b8-080f-11e7-9ac6-bbbdd8235be3.png)
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


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

    $ git pull https://github.com/tinkoff-dwh/zeppelin ZEPPELIN-2252

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

    https://github.com/apache/zeppelin/pull/2129.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 #2129
    
----

----


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    btw, you don't need to squash - it will be squashed automatically when we merge it


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

[GitHub] zeppelin pull request #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
Github user tinkoff-dwh closed the pull request at:

    https://github.com/apache/zeppelin/pull/2129


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    CI passed.
    merging if no more comment


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
Github user tinkoff-dwh commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    @felixcheung 
    i don't know. Do you have any tests for charts? i can't find. 


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    interesting... looks reasonable to me.
    is there a way to add a test for this?


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
Github user tinkoff-dwh commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    CI green https://travis-ci.org/tinkoff-dwh/zeppelin/builds/211021419


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
Github user tinkoff-dwh commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    CI red because i did squash commits and compares incorrect in travis. Reopen PR don't rebuild with new commits.


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

[GitHub] zeppelin issue #2129: [ZEPPELIN-2252] discreteness of line charts

Posted by tinkoff-dwh <gi...@git.apache.org>.
Github user tinkoff-dwh commented on the issue:

    https://github.com/apache/zeppelin/pull/2129
  
    @felixcheung 
    ok, thx. i run manually https://travis-ci.org/tinkoff-dwh/zeppelin/builds/211021419 (set TRAVIS_COMMIT_RANGE in travis)


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