Skip to content

Commit

Permalink
Re-enable "transpile complex regex 2" scala test (#6027)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Chang <antchang@nvidia.com>
  • Loading branch information
anthony-chang authored Jul 29, 2022
1 parent 0fafd69 commit 8c1b555
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,10 @@ class RegularExpressionTranspilerSuite extends FunSuite with Arm {
assert(transpiled === expected)
}

// this was a test for transpiling but we did not ever try to run the
// resulting regex to see if it produced valid results
// see https://github.com/NVIDIA/spark-rapids/issues/5656
ignore("transpile complex regex 2") {
test("transpile complex regex 2") {
val TIMESTAMP_TRUNCATE_REGEX = "^([0-9]{4}-[0-9]{2}-[0-9]{2} " +
"[0-9]{2}:[0-9]{2}:[0-9]{2})" +
"(.[1-9]*(?:0)?[1-9]+)?(.0*[1-9]+)?(?:.0*)?\\z"
"(.[1-9]*(?:0)?[1-9]+)?(.0*[1-9]+)?(?:.0*)?.\\z"

// input and output should be identical except for `.` being replaced
// with `[^\n\r\u0085\u2028\u2029]` and `\z` being replaced with `$`
Expand Down

0 comments on commit 8c1b555

Please sign in to comment.