-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add spark version validate for spark3
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...-connector_3.0/src/test/scala/com/vesoft/nebula/connector/SparkVersionValidateSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) 2022 vesoft inc. All rights reserved. | ||
* | ||
* This source code is licensed under Apache 2.0 License. | ||
*/ | ||
|
||
package com.vesoft.nebula.connector | ||
|
||
import com.vesoft.nebula.connector.utils.SparkValidate | ||
import org.apache.spark.sql.SparkSession | ||
import org.scalatest.funsuite.AnyFunSuite | ||
|
||
class SparkVersionValidateSuite extends AnyFunSuite { | ||
test("spark version validate") { | ||
try { | ||
val version = SparkSession.getActiveSession.map(_.version).getOrElse("UNKNOWN") | ||
SparkValidate.validate("3.0.*", "3.1.*", "3.2.*", "3.3.*") | ||
} catch { | ||
case e: Exception => assert(false) | ||
} | ||
} | ||
} |