mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Parse version correctly
This commit is contained in:
parent
b5f734388d
commit
18cb474a4c
1 changed files with 2 additions and 2 deletions
|
|
@ -55,8 +55,8 @@ public class SparkInterpreterTest {
|
|||
return 0;
|
||||
}
|
||||
|
||||
String[] split = repl.getSparkContext().version().split(".");
|
||||
int version = Integer.parseInt(split[0]) + Integer.parseInt(split[1]);
|
||||
String[] split = repl.getSparkContext().version().split("\\.");
|
||||
int version = Integer.parseInt(split[0]) * 10 + Integer.parseInt(split[1]);
|
||||
return version;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue