Skip to content

Commit

Permalink
Respect CastWithAnsiOffSuite.ansiEnabled in 'cast string to date #2' …
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
HyukjinKwon committed Jun 8, 2022
1 parent 46175d1 commit 2878c4a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ class CastWithAnsiOffSuite extends CastSuiteBase {
}

test("cast string to date #2") {
checkEvaluation(Cast(Literal("2015-03-18X"), DateType), null)
checkEvaluation(Cast(Literal("2015/03/18"), DateType), null)
checkEvaluation(Cast(Literal("2015.03.18"), DateType), null)
checkEvaluation(Cast(Literal("20150318"), DateType), null)
checkEvaluation(Cast(Literal("2015-031-8"), DateType), null)
checkEvaluation(cast(Literal("2015-03-18X"), DateType), null)
checkEvaluation(cast(Literal("2015/03/18"), DateType), null)
checkEvaluation(cast(Literal("2015.03.18"), DateType), null)
checkEvaluation(cast(Literal("20150318"), DateType), null)
checkEvaluation(cast(Literal("2015-031-8"), DateType), null)
}

test("casting to fixed-precision decimals") {
Expand Down

0 comments on commit 2878c4a

Please sign in to comment.