Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed Oct 11, 2024
1 parent ae0cd87 commit 72c3c72
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions velox/functions/prestosql/DateTimeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -1779,15 +1779,20 @@ template <typename T>
struct ToISO8601Function {
VELOX_DEFINE_FUNCTION_TYPES(T);

ToISO8601Function() {
auto formatter =
functions::buildJodaDateTimeFormatter("yyyy-MM-dd'T'HH:mm:ss.SSSZZ");
VELOX_CHECK(!formatter.hasError());
formatter_ = formatter.value();
}

FOLLY_ALWAYS_INLINE void initialize(
const std::vector<TypePtr>& inputTypes,
const core::QueryConfig& config,
const arg_type<Timestamp>* /*input*/) {
if (inputTypes[0]->isTimestamp()) {
timeZone_ = getTimeZoneFromConfig(config);
}
functions::buildJodaDateTimeFormatter("yyyy-MM-dd'T'HH:mm:ss.SSSZZ")
.thenOrThrow([this](auto formatter) { formatter_ = formatter; });
}

FOLLY_ALWAYS_INLINE void call(
Expand Down

0 comments on commit 72c3c72

Please sign in to comment.