Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Apr 23, 2024
1 parent 965368d commit 3f3f1a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion velox/functions/sparksql/DateTimeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct WeekFunction : public InitSessionTimezone<T> {
};

template <typename T>
struct YearOfWeekSparkFunction : public InitSessionTimezone<T> {
struct YearOfWeekFunction : public InitSessionTimezone<T> {
VELOX_DEFINE_FUNCTION_TYPES(T);

FOLLY_ALWAYS_INLINE int32_t computeYearOfWeek(const std::tm& dateTime) {
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/sparksql/Register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void registerFunctions(const std::string& prefix) {
registerFunction<YearFunction, int32_t, Date>({prefix + "year"});
registerFunction<WeekFunction, int32_t, Timestamp>({prefix + "week_of_year"});
registerFunction<WeekFunction, int32_t, Date>({prefix + "week_of_year"});
registerFunction<YearOfWeekSparkFunction, int32_t, Date>(
registerFunction<YearOfWeekFunction, int32_t, Date>(
{prefix + "year_of_week"});

registerFunction<ToUtcTimestampFunction, Timestamp, Timestamp, Varchar>(
Expand Down

0 comments on commit 3f3f1a8

Please sign in to comment.