Skip to content
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

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

rofinn
Copy link
Contributor

@rofinn rofinn commented Feb 23, 2023

@rofinn rofinn requested a review from iamed2 February 23, 2023 00:08
Comment on lines 1327 to 1328
finally
close(result)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
finally
close(result)

Copy link
Collaborator

@iamed2 iamed2 left a 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

src/parsing.jl Outdated Show resolved Hide resolved
# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
)::Union{T, Nothing} where T <: Dates.AbstractDateTime
)::Union{T,Nothing} where {T<:Dates.AbstractDateTime}

@rofinn rofinn requested a review from iamed2 February 23, 2023 21:09
@rofinn
Copy link
Contributor Author

rofinn commented Feb 23, 2023

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"))
Copy link
Collaborator

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 👍

Copy link
Collaborator

@iamed2 iamed2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Version bump please

@rofinn
Copy link
Contributor Author

rofinn commented Feb 23, 2023

Is a patch release fine? We aren't really changing any existing functionality.

@iamed2
Copy link
Collaborator

iamed2 commented Feb 23, 2023

Is a patch release fine? We aren't really changing any existing functionality.

Yup!

@rofinn rofinn merged commit 2d45074 into master Feb 23, 2023
@rofinn rofinn deleted the rf/utcdatetimes-post-merge-changes branch February 23, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants