diff --git a/python/src/main/java/org/apache/zeppelin/python/PythonInterpreterPandasSql.java b/python/src/main/java/org/apache/zeppelin/python/PythonInterpreterPandasSql.java index 4147630d50..6f7cdb0c7c 100644 --- a/python/src/main/java/org/apache/zeppelin/python/PythonInterpreterPandasSql.java +++ b/python/src/main/java/org/apache/zeppelin/python/PythonInterpreterPandasSql.java @@ -68,7 +68,7 @@ public class PythonInterpreterPandasSql extends Interpreter { throws InterpreterException { LOGGER.info("Running SQL query: '{}' over Pandas DataFrame", st); return pythonInterpreter.interpret( - "z.show(pysqldf('" + st + "'))", context); + "z.show(pysqldf('" + st.trim() + "'))", context); } @Override