Skip to content

Commit e2e8dbd

Browse files
committed
move tests
1 parent 11b351c commit e2e8dbd

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class DataFrameFunctionsSuite extends QueryTest {
8585
}
8686
}
8787

88-
test("constant function") {
88+
test("constant functions") {
8989
checkAnswer(
9090
testData2.select(e()).limit(1),
9191
Row(scala.math.E)
@@ -94,6 +94,14 @@ class DataFrameFunctionsSuite extends QueryTest {
9494
testData2.select(pi()).limit(1),
9595
Row(scala.math.Pi)
9696
)
97+
checkAnswer(
98+
ctx.sql("SELECT E()"),
99+
Row(scala.math.E)
100+
)
101+
checkAnswer(
102+
ctx.sql("SELECT PI()"),
103+
Row(scala.math.Pi)
104+
)
97105
}
98106

99107
test("bitwiseNOT") {

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,6 @@ class SQLQuerySuite extends QueryTest with BeforeAndAfterAll with SQLTestUtils {
145145
Seq(Row("1"), Row("2")))
146146
}
147147

148-
test("constant functions") {
149-
checkAnswer(
150-
sql("SELECT E()"),
151-
Row(scala.math.E)
152-
)
153-
checkAnswer(
154-
sql("SELECT PI()"),
155-
Row(scala.math.Pi)
156-
)
157-
}
158-
159148
test("SPARK-3176 Added Parser of SQL ABS()") {
160149
checkAnswer(
161150
sql("SELECT ABS(-1.3)"),

0 commit comments

Comments
 (0)