diff --git a/backends-clickhouse/src/main/scala/org/apache/gluten/utils/CHExpressionUtil.scala b/backends-clickhouse/src/main/scala/org/apache/gluten/utils/CHExpressionUtil.scala index 4212ab37caa38..64f714f575672 100644 --- a/backends-clickhouse/src/main/scala/org/apache/gluten/utils/CHExpressionUtil.scala +++ b/backends-clickhouse/src/main/scala/org/apache/gluten/utils/CHExpressionUtil.scala @@ -200,7 +200,6 @@ object CHExpressionUtil { ARRAY_REMOVE -> DefaultValidator(), ARRAYS_ZIP -> DefaultValidator(), DATE_FROM_UNIX_DATE -> DefaultValidator(), - UNIX_DATE -> DefaultValidator(), MONOTONICALLY_INCREASING_ID -> DefaultValidator(), SPARK_PARTITION_ID -> DefaultValidator(), URL_DECODE -> DefaultValidator(), diff --git a/cpp-ch/local-engine/Parser/scalar_function_parser/CommonScalarFunctionParser.cpp b/cpp-ch/local-engine/Parser/scalar_function_parser/CommonScalarFunctionParser.cpp index 7af65d1070137..459e7c7aa4f30 100644 --- a/cpp-ch/local-engine/Parser/scalar_function_parser/CommonScalarFunctionParser.cpp +++ b/cpp-ch/local-engine/Parser/scalar_function_parser/CommonScalarFunctionParser.cpp @@ -155,6 +155,7 @@ REGISTER_COMMON_SCALAR_FUNCTION_PARSER(FloorDatetime, floor_datetime, dateTrunc) REGISTER_COMMON_SCALAR_FUNCTION_PARSER(Floor, floor, sparkFloor); REGISTER_COMMON_SCALAR_FUNCTION_PARSER(MothsBetween, months_between, sparkMonthsBetween); REGISTER_COMMON_SCALAR_FUNCTION_PARSER(UnixSeconds, unix_seconds, toUnixTimestamp); +REGISTER_COMMON_SCALAR_FUNCTION_PARSER(UnixDate, unix_date, toInt32); // array functions REGISTER_COMMON_SCALAR_FUNCTION_PARSER(Array, array, array); diff --git a/gluten-ut/spark33/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala b/gluten-ut/spark33/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala index a914f28700dcf..b1fbae41eea9f 100644 --- a/gluten-ut/spark33/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala +++ b/gluten-ut/spark33/src/test/scala/org/apache/gluten/utils/clickhouse/ClickHouseTestSettings.scala @@ -733,7 +733,7 @@ class ClickHouseTestSettings extends BackendTestSettings { .exclude("to_timestamp exception mode") .exclude("SPARK-31896: Handle am-pm timestamp parsing when hour is missing") .exclude("DATE_FROM_UNIX_DATE") - .exclude("UNIX_DATE") +// .exclude("UNIX_DATE") .exclude("UNIX_SECONDS") .exclude("UNIX_MILLIS") .exclude("UNIX_MICROS")