-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addressing post-merge comments on #263 #264
Conversation
finally | ||
close(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
finally | |
close(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else looks good
# Utility function for handling "infinity" strings for datetime types to reduce duplication | ||
function _tryparse_datetime_inf( | ||
typ::Type{T}, str, f=typ | ||
)::Union{T, Nothing} where T <: Dates.AbstractDateTime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
)::Union{T, Nothing} where T <: Dates.AbstractDateTime | |
)::Union{T,Nothing} where {T<:Dates.AbstractDateTime} |
codecov has gone down because we deleted about 30 LOC. |
timestamptz_formats(::Type{ZonedDateTime}) = TIMESTAMPTZ_ZDT_FORMATS | ||
timestamptz_formats(::Type{UTCDateTime}) = TIMESTAMPTZ_UTC_FORMATS | ||
function pqparse(::Type{ZonedDateTime}, str::AbstractString) | ||
parsed = _tryparse_datetime_inf(ZonedDateTime, str, Base.Fix2(ZonedDateTime, tz"UTC")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds an additional function abstraction in a couple places so I checked performance between this and master; looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Version bump please
Is a patch release fine? We aren't really changing any existing functionality. |
Yup! |
parse(DateTime, x)
methods Added support for parsing timestamptz as UTCDateTime #263 (comment)TIMESTAMP_FORMAT
for UTCDateTime Added support for parsing timestamptz as UTCDateTime #263 (comment)"+00"
rather than regex handling-00
,+00:00
, etc. Added support for parsing timestamptz as UTCDateTime #263 (comment)