Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/1162
  
    Thank you for pointing out Lens case!
    
    May be we could extract this error handling logic to the method and re-use 
it everywhere, so the client code would look like:
    
    ```java
    this.resultSize = 
parseIntegerOrDefault(getProperty(ELASTICSEARCH_RESULT_SIZE), 10);
    ```
    
    and the API
    
    ```java
    class Interpreter {
      protected Integer parseIntegerOrDefault(String str, Integer defaultValue) 
{ }
    }
    ```
    
    This can be done in a separate PR though and include refactoring of all 
existing interpreters (this, Lense, Python, etc). 
    
    What do you think?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to