Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support converting large dates (i.e. +10999-12-31) from string to Date32 #3

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

phillipleblanc
Copy link

Which issue does this PR close?

Closes apache#7073

Rationale for this change

Support for casting large dates from string to Date32.

What changes are included in this PR?

Extend the parse_date method, which is used in the impl Parser for Date32Type, to handle dates which are prefixed with + or -. If the date is not prefixed with + or -, the existing logic is used unmodified.

This code isn't as optimized as the code for processing more common date formats - but given that these extended dates are relatively rare in practice, I don't think it matters all that much.

Are there any user-facing changes?

Aside from the desired fix, no.

@github-actions github-actions bot added the arrow label Feb 5, 2025
@phillipleblanc phillipleblanc merged commit 8a6e5da into spiceai-53 Feb 5, 2025
16 of 27 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant