We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c729aa commit 3e92d32Copy full SHA for 3e92d32
sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala
@@ -99,13 +99,9 @@ class DataFrameFunctionsSuite extends QueryTest {
99
val l = if (v == null) null else v.length
100
Row(l, l)
101
})
102
- }
103
-
104
- test("length in SQL") {
105
- nullStrings.registerTempTable("null_strings")
106
107
checkAnswer(
108
- ctx.sql("SELECT length(s) FROM null_strings"),
+ nullStrings.selectExpr("length(s)"),
109
nullStrings.collect().toSeq.map { r =>
110
val v = r.getString(1)
111
0 commit comments