Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maropu committed Apr 29, 2020
1 parent 4b1f3f2 commit d90b2e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3432,7 +3432,8 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
Console.withOut(output) {
df.explain()
}
output.toString.matches("""randn?\(-?[0-9]+\)""")
val projectExplainOutput = output.toString.split("\n").find(_.contains("Project")).get
assert(projectExplainOutput.matches(""".*randn?\(-?[0-9]+\).*"""))
}
val df1 = sql("SELECT rand()")
assert(df1.schema.head.name === "rand()")
Expand Down

0 comments on commit d90b2e7

Please sign in to comment.