[KYUUBI #3805] [FOLLOWUP] transform PySparkTests from trait to class to enable @PySparkTest
### _Why are the changes needed?_ Annotation PySparkTest introduced in <https://github.com/apache/incubator-kyuubi/pull/3832> is not working on trait `PySparkTests`. In order to close #3805, transforming `PySparkTests` from trait to class, to enable PySparkTest for skipping tests in nighty builds correctly. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3846 from bowenliang123/3805-followup. Closes #3805 6aacbea84 [liangbowen] make the type of`PySparkTests` from trait to class, in order to enable annotation @PySparkTest for skipping tests Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: Fu Chen <cfmcgrady@gmail.com>
This commit is contained in:
parent
2ac10f91d5
commit
35669b375a
@ -27,7 +27,10 @@ import org.apache.kyuubi.operation.HiveJDBCTestHelper
|
||||
import org.apache.kyuubi.tags.PySparkTest
|
||||
|
||||
@PySparkTest
|
||||
trait PySparkTests extends WithSparkSQLEngine with HiveJDBCTestHelper {
|
||||
class PySparkTests extends WithSparkSQLEngine with HiveJDBCTestHelper {
|
||||
|
||||
override protected def jdbcUrl: String = getJdbcUrl
|
||||
override def withKyuubiConf: Map[String, String] = Map.empty
|
||||
|
||||
test("pyspark support") {
|
||||
val code = "print(1)"
|
||||
|
||||
@ -40,8 +40,7 @@ import org.apache.kyuubi.operation.meta.ResultSetSchemaConstant._
|
||||
import org.apache.kyuubi.util.KyuubiHadoopUtils
|
||||
import org.apache.kyuubi.util.SparkVersionUtil.isSparkVersionAtLeast
|
||||
|
||||
class SparkOperationSuite extends WithSparkSQLEngine with HiveMetadataTests with SparkQueryTests
|
||||
with PySparkTests {
|
||||
class SparkOperationSuite extends WithSparkSQLEngine with HiveMetadataTests with SparkQueryTests {
|
||||
|
||||
override protected def jdbcUrl: String = getJdbcUrl
|
||||
override def withKyuubiConf: Map[String, String] = Map.empty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user