Github user zjffdu commented on the issue:

    https://github.com/apache/zeppelin/pull/3068
  
    Thanks @sanjaydasgupta I was thinking whether we could do it in 
Interpreter.java like this.
    
    ```
      public abstract InterpreterResult interpret2(String st,
                                                  InterpreterContext context)
          throws InterpreterException;
    
      public InterpreterResult interpret(String st, InterpreterContext context)
          throws InterpreterException {
        String cmd = 
Boolean.parseBoolean(getProperty("zeppelin.shell.interpolation")) ?
            interpolate(st, context.getResourcePool()) : st;
        return interpret2(cmd, context);
      }
    ```
    So that each sub class can just implement method `interpret2` (we can make 
a more proper name this method). 


---

Reply via email to