david-mollitor-db commented on code in PR #59213:
URL: https://github.com/apache/spark/pull/59213#discussion_r4200553134


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/RegexpExpressionsSuite.scala:
##########
@@ -627,6 +629,26 @@ class RegexpExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
       StringSplit(Literal("\"quote"), Literal("\"quote"), Literal(-1)) :: Nil)
   }
 
+  test("SPARK-59961: split refreshes its cached pattern when the regex 
changes") {

Review Comment:
   Added in 212fcb5: a second test runs the changing-regex rows with 
`spark.sql.legacy.truncateForEmptyRegexSplit=true` and a UTF8_LCASE input, 
including an empty regex (which that combination splits as `(?ui)`).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to