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 4b1f3f2 commit d90b2e7Copy full SHA for d90b2e7
sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
@@ -3432,7 +3432,8 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
3432
Console.withOut(output) {
3433
df.explain()
3434
}
3435
- output.toString.matches("""randn?\(-?[0-9]+\)""")
+ val projectExplainOutput = output.toString.split("\n").find(_.contains("Project")).get
3436
+ assert(projectExplainOutput.matches(""".*randn?\(-?[0-9]+\).*"""))
3437
3438
val df1 = sql("SELECT rand()")
3439
assert(df1.schema.head.name === "rand()")
0 commit comments