MaxGekk commented on a change in pull request #23405: [SPARK-26496][SS][TESTS]
Avoid to use Random.nextString in StreamingInnerJoinSuite
URL: https://github.com/apache/spark/pull/23405#discussion_r244494982
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingJoinSuite.scala
##########
@@ -350,7 +350,7 @@ class StreamingInnerJoinSuite extends StreamTest with
StateStoreMetricsTest with
withTempDir { tempDir =>
val queryId = UUID.randomUUID
val opId = 0
- val path = Utils.createDirectory(tempDir.getAbsolutePath,
Random.nextString(10)).toString
+ val path = Utils.createDirectory(tempDir.getAbsolutePath,
Random.nextFloat.toString).toString
Review comment:
Does `RandomStringUtils.randomAlphanumeric(10)` generate unacceptable chars
too?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]