Repository: zeppelin Updated Branches: refs/heads/master 73f1e4859 -> 5afd7cacd
ZEPPELIN-1115: add correct %python.sql interpreter name to configuration ### What is this PR for? Hotfix for [ZEPPELIN-1244](https://issues.apache.org/jira/browse/ZEPPELIN-1244) ### What type of PR is it? Hot Fix ### What is the Jira issue? [ZEPPELIN-1244](https://issues.apache.org/jira/browse/ZEPPELIN-1244) ### How should this be tested? Remove interpreter configuration and try `%python.sql` i.e over [bank.csv](http://mlr.cs.umass.edu/ml/datasets/Bank+Marketing) read as `pandas.dataframe` ``` #stop zeppelin rm conf/interpreter-setting.json #start zeppelin %python import pandas as pd rates = pd.read_csv("http://www3.dsi.uminho.pt/pcortez/data/bank.csv", sep=";") %python.sql SELECT * FROM rates LIMIT 10 ``` ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Alexander Bezzubov <[email protected]> Closes #1238 from bzz/python/fix/ZEPPELIN-1244 and squashes the following commits: befeebe [Alexander Bezzubov] add correct %python.sql interpreter name to configuration Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/5afd7cac Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/5afd7cac Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/5afd7cac Branch: refs/heads/master Commit: 5afd7cacdb6ac35d19ebf63bac9f2d20298cfc5c Parents: 73f1e48 Author: Alexander Bezzubov <[email protected]> Authored: Thu Jul 28 18:49:32 2016 +0900 Committer: Alexander Bezzubov <[email protected]> Committed: Thu Jul 28 19:50:11 2016 +0900 ---------------------------------------------------------------------- python/src/main/resources/interpreter-setting.json | 2 +- .../main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/5afd7cac/python/src/main/resources/interpreter-setting.json ---------------------------------------------------------------------- diff --git a/python/src/main/resources/interpreter-setting.json b/python/src/main/resources/interpreter-setting.json index 868b547..4b12cad 100644 --- a/python/src/main/resources/interpreter-setting.json +++ b/python/src/main/resources/interpreter-setting.json @@ -21,7 +21,7 @@ { "group": "python", "name": "sql", - "className": "org.apache.zeppelin.python.PythonPandasSqlInterpreter", + "className": "org.apache.zeppelin.python.PythonInterpreterPandasSql", "properties": { } } ] http://git-wip-us.apache.org/repos/asf/zeppelin/blob/5afd7cac/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java ---------------------------------------------------------------------- diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java index 1845e6c..8939ec2 100644 --- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java +++ b/zeppelin-zengine/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java @@ -508,7 +508,7 @@ public class ZeppelinConfiguration extends XMLConfiguration { + "org.apache.zeppelin.postgresql.PostgreSqlInterpreter," + "org.apache.zeppelin.flink.FlinkInterpreter," + "org.apache.zeppelin.python.PythonInterpreter," - + "org.apache.zeppelin.python.PythonPandasSqlInterpreter," + + "org.apache.zeppelin.python.PythonInterpreterPandasSql," + "org.apache.zeppelin.ignite.IgniteInterpreter," + "org.apache.zeppelin.ignite.IgniteSqlInterpreter," + "org.apache.zeppelin.lens.LensInterpreter,"
