diff --git a/velox/functions/sparksql/DateTimeFunctions.h b/velox/functions/sparksql/DateTimeFunctions.h index c155cefb0c5b..78fa2c1b9201 100644 --- a/velox/functions/sparksql/DateTimeFunctions.h +++ b/velox/functions/sparksql/DateTimeFunctions.h @@ -16,7 +16,6 @@ #include "velox/functions/lib/DateTimeFormatter.h" #include "velox/functions/lib/TimeUtils.h" -#include "velox/functions/prestosql/DateTimeImpl.h" #include "velox/type/tz/TimeZoneMap.h" namespace facebook::velox::functions::sparksql { @@ -299,8 +298,7 @@ struct DateSubFunction { }; template -struct DayOfWeekFunction : public InitSessionTimezone, - public TimestampWithTimezoneSupport { +struct DayOfWeekFunction : public InitSessionTimezone { VELOX_DEFINE_FUNCTION_TYPES(T); // 1 = Sunday, 2 = Monday, ..., 7 = Saturday