mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix pyspark test case
This commit is contained in:
parent
987e2118d3
commit
9fbf70d667
1 changed files with 3 additions and 2 deletions
|
|
@ -128,10 +128,11 @@ public class PySparkInterpreterTest {
|
|||
if (getSparkVersionNumber() > 11) {
|
||||
String redefinitionCode = "z = 1\n";
|
||||
String restoreCode = "z = _zc\n";
|
||||
String validCode = "print(z)\n";
|
||||
String validCode = "z.input(\"test\")\n";
|
||||
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pySparkInterpreter.interpret(validCode, context).code());
|
||||
assertEquals(InterpreterResult.Code.ERROR, pySparkInterpreter.interpret(redefinitionCode, context).code());
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pySparkInterpreter.interpret(redefinitionCode, context).code());
|
||||
assertEquals(InterpreterResult.Code.ERROR, pySparkInterpreter.interpret(validCode, context).code());
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pySparkInterpreter.interpret(restoreCode, context).code());
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pySparkInterpreter.interpret(validCode, context).code());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue