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

Adding an OffsetDateTimeExtractor, deprecating a DateExtractor constructor #66

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

Craigacp
Copy link
Member

Description

Adds a FieldExtractor that can process date times to go with the one that can process dates. This one uses OffsetDateTime to capture timezone information. It's possible we'll need a LocalDateTime one for fields without time zone information as OffsetDateTime requires it and will fail to parse otherwise.

Also it deprecates the DateExtractor constructor which accepts a DateTimeFormatter as it's not possible to recover the format string out of such an object, and so the provenance isn't convertible into a configuration. It does however add the toString of the formatter which should be useful for figuring out what the original date format string was even if it can't be automatically generated.

Motivation

Fixes a bug in the DateExtractors provenance and adds a timestamp capability to the RowProcessors metadata extraction.

…onstructors deprecated because it doesn't properly preserve the provenance.
@Craigacp Craigacp requested a review from JackSullivan October 19, 2020 21:45
Copy link
Member

@JackSullivan JackSullivan left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Craigacp Craigacp merged commit 437d41e into main Oct 22, 2020
@Craigacp Craigacp deleted the date-extractor-fixes branch October 22, 2020 14:58
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