You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by AhyoungRyu <gi...@git.apache.org> on 2016/06/10 02:18:04 UTC

[GitHub] zeppelin pull request #984: [ZEPPELIN-982] Improve interpreter completion AP...

GitHub user AhyoungRyu opened a pull request:

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

    [ZEPPELIN-982] Improve interpreter completion API

    ### What is this PR for?
    When people implement a new interpreter, they extend [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java) as described in [here](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/writingzeppelininterpreter.html). Among the several methods in [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java), [completion() API](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java#L109) enables auto-completion.
    
    However this API is too simple compared to other project's auto-completion and hard to add more at the moment. So for the aspect of further expansion, it would be better to separate and restructure this API before the this release( 0.6.0 ).
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Create new structure : `InterpreterCompletion` in `RemoteInterpreterService.thrift` and regenerate `zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/*` files 
    * [x] - Change all existing `List<String> completion` -> `List<InterpreterCompletion> completion` 
    * [x] - Change `paragraph.controller.js` to point real `name` and `value`
    
    ### What is the Jira issue?
    [ZEPPELIN-982](https://issues.apache.org/jira/browse/ZEPPELIN-982)
    
    ### How should this be tested?
    Since this improvement is just API change, it should work same as before. So after applying this patch, and check whether auto-completion works well or not. 
    
    Use `. + ctrl` for auto-completion. For example,
    
    ```
    %spark 
    sc.version
    ```
    
    When after typing `sc.` and pushing  `. + ctrl` down, `version` should be shown in the auto-completion list. 
    
    ### Screenshots (if appropriate)
    ![auto_completion](https://cloud.githubusercontent.com/assets/10060731/15952521/72937782-2e76-11e6-8246-4faf0dd77a5b.gif)
    
    ### 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/AhyoungRyu/incubator-zeppelin ZEPPELIN-982

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

    https://github.com/apache/zeppelin/pull/984.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 #984
    
----
commit b12b056fbee3030e002a9109f80611ca6ed1d851
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:30Z

    Define InterpreterCompletion structure to thrift file

commit c42f3b51131aaaf99d17c9046e396b08cf3320d3
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:56Z

    Change v -> v.name & v.value in front

commit e36c2d4f426c944eed43550921bf234fcfb4f05f
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:36:28Z

    Add automatically generated thrift class

commit c67a16896f9dcced6102c3b258dc8e2b381e7cbf
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:22Z

    Apply new InterpreterCompletion class under zeppelin-interpreter/

commit 6e8340ddca8a0885c130387e9571f73402b3d877
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:43Z

    Apply new InterpreterCompletion class under zeppelin-server/

commit f93b7c2e0b21a600567dab8d7dbe4763bea52f03
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:03Z

    Apply new InterpreterCompletion class under zeppelin-zengine/

commit eeb5cf3f549c0de09628b26fc54dcb305c722b86
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:38Z

    Apply new InterpreterCompletion class to all interpreter class files

commit 936e6fbfbddfacc88f7ada38998b87f2ec5b757e
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T17:31:49Z

    Change return type

commit 476181286f00cbc3d800751f404ab37a2a35ef6f
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:35:17Z

    Fix type casting error in SparkInterpreter

commit b4e2e9f7f9c5bd3861efaf93516367a5a10d8119
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:54:21Z

    Remove console.log

----


---
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 #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    Thanks @AhyoungRyu for the improvement and taking care of comments.
    
    LGTM. Merge it into master and 0.6 branch if there're no more discussions.


---
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 #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    @AhyoungRyu What the `value` of InterpreterCompletion means? And I suggest we remove the mark abstract from Interpreter class because almost interpreter returns empty list and it's better to offer that behaviour by default. How about 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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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


---
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 #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    @jongyoul Makes sense. I addressed your feedback. Please see my last two commit :)
    
    Regarding `value`, 
    as you can see, I used two variables(`name` and `value`) for `InterpreterCompletion`. When you use the auto-completion in the paragraph, you can see the several `names` in the suggested list. And if you select something in this list, the `value` that you choose will be returned. Actually these two variables are already existed in [paragraph.controller.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js#L786). I just connected these two. 


---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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


---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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

    [ZEPPELIN-982] Improve interpreter completion API

    ### What is this PR for?
    When people implement a new interpreter, they extend [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java) as described in [here](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/writingzeppelininterpreter.html). Among the several methods in [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java), [completion API](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java#L109) enables auto-completion.
    
    However this API is too simple compared to other project's auto-completion and hard to add more at the moment. So for the aspect of further expansion, it would be better to separate and restructure this API before the this release( 0.6.0 ).
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Create new structure : `InterpreterCompletion` in `RemoteInterpreterService.thrift` and regenerate `zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/*` files 
    * [x] - Change all existing `List<String> completion` -> `List<InterpreterCompletion> completion` 
    * [x] - Change `paragraph.controller.js` to point real `name` and `value`
    
    ### What is the Jira issue?
    [ZEPPELIN-982](https://issues.apache.org/jira/browse/ZEPPELIN-982)
    
    ### How should this be tested?
    Since this improvement is just API change, it should work same as before. So after applying this patch, and check whether auto-completion works well or not. 
    
    Use `. + ctrl` for auto-completion. For example,
    
    ```
    %spark 
    sc.version
    ```
    
    When after typing `sc.` and pushing  `. + ctrl` down, `version` should be shown in the auto-completion list. 
    
    ### Screenshots (if appropriate)
    ![auto_completion](https://cloud.githubusercontent.com/assets/10060731/15952521/72937782-2e76-11e6-8246-4faf0dd77a5b.gif)
    
    ### 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/AhyoungRyu/incubator-zeppelin ZEPPELIN-982

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

    https://github.com/apache/zeppelin/pull/984.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 #984
    
----
commit 91b9e4f5e603a3a6f02d97b1033b60493e0f4db3
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:30Z

    Define InterpreterCompletion structure to thrift file

commit bf32b22005aa0abc4be4df3102a769e36d7507c2
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:56Z

    Change v -> v.name & v.value in front

commit 856a03978e5a8a7da2551c8d5b8f3e88c9abd9a9
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:36:28Z

    Add automatically generated thrift class

commit 5cfeef60cdeb027bf791b5a0b04b2fef6a64185b
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:22Z

    Apply new InterpreterCompletion class under zeppelin-interpreter/

commit 45b1e74cb419014d4e005a73fe9ede88e2f7b8ce
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:43Z

    Apply new InterpreterCompletion class under zeppelin-server/

commit 4b93fe85802cb1924bbaecbe10dbdba5ddeeffdd
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:03Z

    Apply new InterpreterCompletion class under zeppelin-zengine/

commit e9ffb0b63312ae77ad49568e6b83237f543292af
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:38Z

    Apply new InterpreterCompletion class to all interpreter class files

commit 4e3f50acb865270b3b18180fd5e27a7e5ef47f36
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T17:31:49Z

    Change return type

commit 70958e26e7195c6858b599ead55c96489a65795c
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:35:17Z

    Fix type casting error in SparkInterpreter

commit 4c18701ada81625d83305b621db6cb6a03d18cac
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:54:21Z

    Remove console.log

commit 5e88015992139bf0f215b49b314bf6cf3880a349
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T03:07:29Z

    Fix travis error

commit 9d5d170706d1564a233e2e4797f4729e909f4e6a
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T17:20:12Z

    Remove abstract and make it return null by default

commit c27946b202bf23f8f807818751a9ea6cf6da4a71
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T17:22:06Z

    Address @jongyoul review

commit 480e738d718be37e261692ddd432fc341a5bd3d3
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T18:03:12Z

    Address @minalee feedback

commit 364368ece00138905341535266afafafd3818529
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-12T20:40:37Z

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

[GitHub] zeppelin issue #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    @bzz Yeah thanks for pointing it. I'll take a look at 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 issue #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    @AhyoungRyu there are 2 different test failures on CI here:
    
    **Integration test** fails https://s3.amazonaws.com/archive.travis-ci.org/jobs/137185986/log.txt
    ```
    Tests in error: 
      ZeppelinIT.testSparkInterpreterDependencyLoading:210 ยป NoSuchElement Unable to...
    
    Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//div[@class='modal-dialog'][contains(.,'Do you want to update this interpreter and restart with new settings?')]//div[@class='modal-footer']//button[contains(.,'OK')]"}
    ```
    
    **Cassandra interpreter test** failure https://api.travis-ci.org/jobs/137185978/log.txt?deansi=true
    ```
    .apache.zeppelin.cassandra.CassandraInterpreterTest  Time elapsed: 29.999 sec  <<< ERROR!
    java.lang.ExceptionInInitializerError: null
    	at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84)
    	at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:37)
    	at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
    	at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
    	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:63)
    	at info.archinnov.achilles.script.ScriptExecutor.executeScript(ScriptExecutor.java:61)
    	at info.archinnov.achilles.embedded.AchillesInitializer.executeStartupScripts(AchillesInitializer.java:204)
    	at info.archinnov.achilles.embedded.AchillesInitializer.initialize(AchillesInitializer.java:98)
    	at info.archinnov.achilles.embedded.AchillesInitializer.initializeFromParameters(AchillesInitializer.java:61)
    	at info.archinnov.achilles.embedded.CassandraEmbeddedServer.<init>(CassandraEmbeddedServer.java:76)
    	at info.archinnov.achilles.embedded.CassandraEmbeddedServerBuilder.buildNativeSessionOnly(CassandraEmbeddedServerBuilder.java:436)
    	at org.apache.zeppelin.cassandra.CassandraInterpreterTest.<clinit>(CassandraInterpreterTest.java:59)
    Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9227
    ```
    
    If you believe neither of them are related to this changes - the best way to handle it is to file a JIRA issues (with the name of the test failing in the title), label `flaky-test` and attach the links to CI logs.



---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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

    [ZEPPELIN-982] Improve interpreter completion API

    ### What is this PR for?
    When people implement a new interpreter, they extend [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java) as described in [here](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/writingzeppelininterpreter.html). Among the several methods in [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java), [completion API](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java#L109) enables auto-completion.
    
    However this API is too simple compared to other project's auto-completion and hard to add more at the moment. So for the aspect of further expansion, it would be better to separate and restructure this API before the this release( 0.6.0 ).
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Create new structure : `InterpreterCompletion` in `RemoteInterpreterService.thrift` and regenerate `zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/*` files 
    * [x] - Change all existing `List<String> completion` -> `List<InterpreterCompletion> completion` 
    * [x] - Change `paragraph.controller.js` to point real `name` and `value`
    
    ### What is the Jira issue?
    [ZEPPELIN-982](https://issues.apache.org/jira/browse/ZEPPELIN-982)
    
    ### How should this be tested?
    Since this improvement is just API change, it should work same as before. So after applying this patch, and check whether auto-completion works well or not. 
    
    Use `. + ctrl` for auto-completion. For example,
    
    ```
    %spark 
    sc.version
    ```
    
    When after typing `sc.` and pushing  `. + ctrl` down, `version` should be shown in the auto-completion list. 
    
    ### Screenshots (if appropriate)
    ![auto_completion](https://cloud.githubusercontent.com/assets/10060731/15952521/72937782-2e76-11e6-8246-4faf0dd77a5b.gif)
    
    ### 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/AhyoungRyu/incubator-zeppelin ZEPPELIN-982

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

    https://github.com/apache/zeppelin/pull/984.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 #984
    
----
commit b12b056fbee3030e002a9109f80611ca6ed1d851
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:30Z

    Define InterpreterCompletion structure to thrift file

commit c42f3b51131aaaf99d17c9046e396b08cf3320d3
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:56Z

    Change v -> v.name & v.value in front

commit e36c2d4f426c944eed43550921bf234fcfb4f05f
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:36:28Z

    Add automatically generated thrift class

commit c67a16896f9dcced6102c3b258dc8e2b381e7cbf
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:22Z

    Apply new InterpreterCompletion class under zeppelin-interpreter/

commit 6e8340ddca8a0885c130387e9571f73402b3d877
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:43Z

    Apply new InterpreterCompletion class under zeppelin-server/

commit f93b7c2e0b21a600567dab8d7dbe4763bea52f03
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:03Z

    Apply new InterpreterCompletion class under zeppelin-zengine/

commit eeb5cf3f549c0de09628b26fc54dcb305c722b86
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:38Z

    Apply new InterpreterCompletion class to all interpreter class files

commit 936e6fbfbddfacc88f7ada38998b87f2ec5b757e
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T17:31:49Z

    Change return type

commit 476181286f00cbc3d800751f404ab37a2a35ef6f
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:35:17Z

    Fix type casting error in SparkInterpreter

commit b4e2e9f7f9c5bd3861efaf93516367a5a10d8119
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:54:21Z

    Remove console.log

commit 559059d2622ee4d99de1bdfad1fb37b65dc9805c
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T03:07:29Z

    Fix travis error

----


---
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 #984: [ZEPPELIN-982] Improve interpreter completion API

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

    https://github.com/apache/zeppelin/pull/984
  
    @AhyoungRyu I see. Thanks.


---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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


---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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


---
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 #984: [ZEPPELIN-982] Improve interpreter completion AP...

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

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

    [ZEPPELIN-982] Improve interpreter completion API

    ### What is this PR for?
    When people implement a new interpreter, they extend [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java) as described in [here](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/writingzeppelininterpreter.html). Among the several methods in [interpreter.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java), [completion API](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java#L109) enables auto-completion.
    
    However this API is too simple compared to other project's auto-completion and hard to add more at the moment. So for the aspect of further expansion, it would be better to separate and restructure this API before the this release( 0.6.0 ).
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    * [x] - Create new structure : `InterpreterCompletion` in `RemoteInterpreterService.thrift` and regenerate `zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/*` files 
    * [x] - Change all existing `List<String> completion` -> `List<InterpreterCompletion> completion` 
    * [x] - Change `paragraph.controller.js` to point real `name` and `value`
    
    ### What is the Jira issue?
    [ZEPPELIN-982](https://issues.apache.org/jira/browse/ZEPPELIN-982)
    
    ### How should this be tested?
    Since this improvement is just API change, it should work same as before. So after applying this patch, and check whether auto-completion works well or not. 
    
    Use `. + ctrl` for auto-completion. For example,
    
    ```
    %spark 
    sc.version
    ```
    
    When after typing `sc.` and pushing  `. + ctrl` down, `version` should be shown in the auto-completion list. 
    
    ### Screenshots (if appropriate)
    ![auto_completion](https://cloud.githubusercontent.com/assets/10060731/15952521/72937782-2e76-11e6-8246-4faf0dd77a5b.gif)
    
    ### 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/AhyoungRyu/incubator-zeppelin ZEPPELIN-982

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

    https://github.com/apache/zeppelin/pull/984.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 #984
    
----
commit 3022bffcbd0c4366e348e0757c13c5e142083935
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:30Z

    Define InterpreterCompletion structure to thrift file

commit c1bf04afebc44203634d65e7d4d6fa6199c139dc
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:33:56Z

    Change v -> v.name & v.value in front

commit fb14dc53c742bfc0d99f7eb1d3d7ad71545a3486
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:36:28Z

    Add automatically generated thrift class

commit 09e0d29df3922497ff44d62d14fa1773dceda834
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:22Z

    Apply new InterpreterCompletion class under zeppelin-interpreter/

commit 582b9faf8a75b241b3a77c2390dc4d7f12891a93
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:37:43Z

    Apply new InterpreterCompletion class under zeppelin-server/

commit 769fd49ec042b0b07995e91516867eecd1e6bf45
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:03Z

    Apply new InterpreterCompletion class under zeppelin-zengine/

commit 903525e82a8f050591c64c3d20951657963771ae
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T16:38:38Z

    Apply new InterpreterCompletion class to all interpreter class files

commit 2dead3e72a1a2187e43ea057ca1ee8ddf8fb92ed
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-09T17:31:49Z

    Change return type

commit f4a4a4e1f909d6d9da4c5194f38f4efd123bf3cd
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:35:17Z

    Fix type casting error in SparkInterpreter

commit 7e662da45dedd14e627a9f02d42abe202bac23fc
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T00:54:21Z

    Remove console.log

commit 0444804911e22c72a4d170c31bf944b154b0b435
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T03:07:29Z

    Fix travis error

commit 9eeda0218968993e87514a70cf95ea5314fd351b
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T17:20:12Z

    Remove abstract and make it return null by default

commit 3777a41bb52359516375dc6239cd794ba13d79ba
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T17:22:06Z

    Address @jongyoul review

commit 3c6fd26cb956bfb33706dc2c2581e567bab8dfb6
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-06-10T18:03:12Z

    Address @minalee feedback

----


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