Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug in WHERE clause (Filter) with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1409,6 +1411,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug in SELECT clause (Project) with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1421,6 +1425,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug in HAVING clause (Filter) with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1440,6 +1446,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug in Aggregate with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1459,6 +1467,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug negative examples with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand Down Expand Up @@ -1487,6 +1497,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug in nested subquery with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1507,6 +1519,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug with nasty predicate expr with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand All @@ -1525,6 +1539,8 @@ class SubquerySuite extends QueryTest with SharedSQLContext {
test("SPARK-28441: COUNT bug with attribute ref in subquery input and output with PythonUDF") {
import IntegratedUDFTestUtils._

assume(shouldTestPythonUDFs)

val pythonTestUDF = TestPythonUDF(name = "udf")
registerTestUDF(pythonTestUDF, spark)

Expand Down