Skip to content

Commit 3d85e88

Browse files
committed
[SPARK-29191][TESTS] Add tag ExtendedSQLTest for SQLQueryTestSuite
1 parent 4080c4b commit 3d85e88

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package org.apache.spark.tags;
19+
20+
import org.scalatest.TagAnnotation;
21+
22+
import java.lang.annotation.ElementType;
23+
import java.lang.annotation.Retention;
24+
import java.lang.annotation.RetentionPolicy;
25+
import java.lang.annotation.Target;
26+
27+
@TagAnnotation
28+
@Retention(RetentionPolicy.RUNTIME)
29+
@Target({ElementType.METHOD, ElementType.TYPE})
30+
public @interface ExtendedSQLTest { }

sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import org.apache.spark.sql.execution.command.{DescribeColumnCommand, DescribeCo
3434
import org.apache.spark.sql.internal.SQLConf
3535
import org.apache.spark.sql.test.SharedSparkSession
3636
import org.apache.spark.sql.types.StructType
37+
import org.apache.spark.tags.ExtendedSQLTest
3738

3839
/**
3940
* End-to-end test cases for SQL queries.
@@ -104,6 +105,7 @@ import org.apache.spark.sql.types.StructType
104105
* Therefore, UDF test cases should have single input and output files but executed by three
105106
* different types of UDFs. See 'udf/udf-inner-join.sql' as an example.
106107
*/
108+
@ExtendedSQLTest
107109
class SQLQueryTestSuite extends QueryTest with SharedSparkSession {
108110

109111
import IntegratedUDFTestUtils._

0 commit comments

Comments
 (0)