Skip to content

Commit d90b2e7

Browse files
committed
Fix
1 parent 4b1f3f2 commit d90b2e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3432,7 +3432,8 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
34323432
Console.withOut(output) {
34333433
df.explain()
34343434
}
3435-
output.toString.matches("""randn?\(-?[0-9]+\)""")
3435+
val projectExplainOutput = output.toString.split("\n").find(_.contains("Project")).get
3436+
assert(projectExplainOutput.matches(""".*randn?\(-?[0-9]+\).*"""))
34363437
}
34373438
val df1 = sql("SELECT rand()")
34383439
assert(df1.schema.head.name === "rand()")

0 commit comments

Comments
 (0)