Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed Sep 21, 2024
1 parent e248839 commit cd07fca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions velox/functions/sparksql/DateTimeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ struct UnixTimestampParseWithFormatFunction
this->format_ = detail::getDateTimeFormatter(
std::string_view(format->data(), format->size()),
legacyFormatter_ ? DateTimeFormatterType::STRICT_SIMPLE
: DateTimeFormatterType::JODA);
: DateTimeFormatterType::JODA);
} catch (const VeloxUserError&) {
invalidFormat_ = true;
}
Expand All @@ -253,7 +253,7 @@ struct UnixTimestampParseWithFormatFunction
this->format_ = detail::getDateTimeFormatter(
std::string_view(format.data(), format.size()),
legacyFormatter_ ? DateTimeFormatterType::STRICT_SIMPLE
: DateTimeFormatterType::JODA);
: DateTimeFormatterType::JODA);
}
} catch (const VeloxUserError&) {
return false;
Expand Down Expand Up @@ -313,7 +313,7 @@ struct FromUnixtimeFunction {
formatter_ = detail::getDateTimeFormatter(
std::string_view(format.data(), format.size()),
legacyFormatter_ ? DateTimeFormatterType::STRICT_SIMPLE
: DateTimeFormatterType::JODA);
: DateTimeFormatterType::JODA);
maxResultSize_ = formatter_->maxResultSize(sessionTimeZone_);
}

Expand Down Expand Up @@ -404,7 +404,7 @@ struct GetTimestampFunction {
formatter_ = detail::getDateTimeFormatter(
std::string_view(*format),
legacyFormatter_ ? DateTimeFormatterType::STRICT_SIMPLE
: DateTimeFormatterType::JODA);
: DateTimeFormatterType::JODA);
isConstantTimeFormat_ = true;
}
}
Expand All @@ -417,7 +417,7 @@ struct GetTimestampFunction {
formatter_ = detail::getDateTimeFormatter(
std::string_view(format),
legacyFormatter_ ? DateTimeFormatterType::STRICT_SIMPLE
: DateTimeFormatterType::JODA);
: DateTimeFormatterType::JODA);
}
auto dateTimeResult = formatter_->parse(std::string_view(input));
// Null as result for parsing error.
Expand Down

0 comments on commit cd07fca

Please sign in to comment.