From 2878c4a735a37d118a231a43cefdfd5d86124986 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Wed, 8 Jun 2022 14:44:50 +0900 Subject: [PATCH] Respect CastWithAnsiOffSuite.ansiEnabled in 'cast string to date #2' test --- .../catalyst/expressions/CastWithAnsiOffSuite.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastWithAnsiOffSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastWithAnsiOffSuite.scala index 4e4bc096deac5..56e586da2a39c 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastWithAnsiOffSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastWithAnsiOffSuite.scala @@ -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") {