File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
sql/core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff 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" ) {
Original file line number Diff line number Diff 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)" ),
You can’t perform that action at this time.
0 commit comments