-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groovy Interpreter for Apazhe Zeppelin [ZEPPELIN-2176] #2135
Conversation
@Leemoonsoo, I moved the repo under the user, used the latest master, now i have another error:
|
Jenkins build script didn't handle well when source branch name of pullrequest is |
@Leemoonsoo, now I see status from travis ) |
The error
looks like temporary network problem. You can always restart the failed Job and see if it passing. |
… HTTP.groovy to resources to simplify build, add default z-properties
… HTTP.groovy to resources to simplify build, add default z-properties
@Leemoonsoo , is it possible to restart jenkins checks after travis succeed? |
Hello All, Asking for help with Jenkins:
|
Looks like second test matrix succeeded after the manual restart. |
@Leemoonsoo Interesting) I did not knew that... i'll take a look how it's implemented... |
- implement shared script variables - move docs - implement run methods
@Leemoonsoo, Just committed changes. a="Hello world"
//or
@groovy.transform.Field String aa = "Hello world"
//or
g.put('aaa',"Hello world") The usual declared variables - has local visibility. |
@dlukyanov Thanks for the update and explanation on behavior. Inside of docs directory, groovy.md will need some header to be compiled with Jekyll. For example, spark.md
Menu in docs also need link to groovy. https://github.com/apache/zeppelin/blob/master/docs/_includes/themes/zeppelin/_navigation.html#L56
|
- Inside of docs directory, groovy.md will need some header to be compiled with Jekyll - Menu in docs also need link to groovy - .travis.yml we need add !groovy
@Leemoonsoo , done. waiting for travis. |
Thanks @dlukyanov for the contribution. LGTM! |
Merge to master if no further comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlukyanov Thanks for great contribution and sorry for my late blocking. I left some minor comment about docs. BTW why did you added README.txt
& README.md
both?
And generally, Zeppelin follows Google Java code style#2-block-indentation. Can this be addressed as well before merge? Probably this looks not important but other ppl who want to contribute to Zeppelin can refer your PR(e.g. code style/ license handling/ docs etc etc..) in the future :)
@@ -78,6 +78,7 @@ | |||
<li><a href="{{BASE_PATH}}/interpreter/scio.html">Scio</a></li> | |||
<li><a href="{{BASE_PATH}}/interpreter/shell.html">Shell</a></li> | |||
<li><a href="{{BASE_PATH}}/interpreter/spark.html">Spark</a></li> | |||
<li><a href="{{BASE_PATH}}/interpreter/groovy.html">Groovy</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put Groovy
below Geode
? It should be in alphabetical order.
docs/interpreter/groovy.md
Outdated
|
||
* `groovy.xml.MarkupBuilder g.html()` | ||
|
||
Starts or continues rendering of `%angular` to output and returns [groovy.xml.MarkupBuilder](https://www.google.com/search?q=groovy.xml.MarkupBuilder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this link http://groovy-lang.org/processing-xml.html#_markupbuilder instead of google search result ?
- Zeppelin follows Google Java code - interpreter alphabetical order in _navigation.html - direct link to MarkupBuilder in groovy help
@AhyoungRyu, changes committed,waiting for travis... From travis-ci.org: |
@@ -55,159 +55,172 @@ | |||
|
|||
/** | |||
* Groovy interpreter for Zeppelin. | |||
* @author dlukyanov@ukr.net / dmitry lukyanov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code autoformat.. but it's not allowed to keep the created by
? any footprint? )))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlukyanov I see. Yeah so sadly Zeppelin doesn't encourage the footprint 😭 (see here: d64920d)
@@ -41,308 +43,328 @@ | |||
|
|||
/** | |||
* Groovy interpreter for Zeppelin. | |||
* @author dlukyanov@ukr.net / dmitry lukyanov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlukyanov Zeppelin generally don't write author name in the source code. Even if it does, all ppl still can track and see what you contribute to Zeppelin :)
|
||
bindings.clear(); | ||
InterpreterResult result = new InterpreterResult(Code.SUCCESS, out.toString()); | ||
//log.info("RESULT: "+result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this commented log.info
if it's not necessary?
Thanks for addressing my comments! I left some minor comments again about "author name" in the source code and removing unnecessary |
- remove @author - remove commented code
@Leemoonsoo , @AhyoungRyu , any other comments? |
Looks good to me :) |
Merge to master if no further comments. |
What is this PR for?
Groovy Interpreter
What type of PR is it?
Feature
Todos
What is the Jira issue?
[ZEPPELIN-2176]
How should this be tested?
Follow the groovy interpreter documentation samples
Questions: