MOBIN created ZEPPELIN-3923: ------------------------------- Summary: Zeppelin 0.8.0 dose not recognize "-" character when the interpreter when interpreter contains "-" character Key: ZEPPELIN-3923 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3923 Project: Zeppelin Issue Type: Bug Components: Interpreters Affects Versions: 0.8.0 Environment: zeppelin 0.8.0 Reporter: MOBIN Attachments: wx20181225-144...@2x.png, 屏幕快照 2018-12-25 下午2.11.47.png, 屏幕快照 2018-12-25 下午2.12.40.png
Zeppelin 0.8.0 dose not recognize "-" character when the interpreter when interpreter contains "-" character: if I display then specified interpreter name and the interpreter contains "-" character,it will report the following error: {color:#FF0000}org.apache.zeppelin.interpreter.InterpreterNotFoundException: Either no interpreter named mobin or it is not binded to this note{color} on the cintrary, if I don't refer to the interpreter,it works Then, I debugged the source code and found that the bug was caused by a line of regular expression code of class Paragraph private static Pattern REPL_PATTERN = Pattern.compile("(\\s*)%([\\w\\.]+).*", Pattern.DOTALL) [https://github.com/apache/zeppelin/blob/v0.8.0/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Paragraph.java]] So I extracted this regular expression code to test and changed the regular expression ,as shown in the figure. !屏幕快照 2018-12-25 下午2.11.47.png! !屏幕快照 2018-12-25 下午2.12.40.png! !wx20181225-144...@2x.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005)