Skip to content

Extend config of RecordTimestampExtractor with date-time format pattern#214

Open
Krzysztof Gadomski (gadomsky) wants to merge 1 commit intoconfluentinc:masterfrom
gadomsky:add-datetime-format-pattern-config
Open

Extend config of RecordTimestampExtractor with date-time format pattern#214
Krzysztof Gadomski (gadomsky) wants to merge 1 commit intoconfluentinc:masterfrom
gadomsky:add-datetime-format-pattern-config

Conversation

@gadomsky

Problem

Partitioning by String field is possible only if this field contains data in only one specific format. There is no easy way to override RecordFieldTimestampExtractor with custom datetime formatter.

Solution

This PR introduceses new configuration field with format pattern.
Default value of this new configuration is empty String, cause there is no coressponding pattern to DatetimeFormatter beeing used currently - it is only possible to set this programmticaly.

Does this solution apply anywhere else?
  • yes
  • no
If yes, where?

Test Strategy

Testing done:
  • Unit tests
  • Integration tests
  • System tests
  • Manual tests

Release Plan

@OneCricketeer

You should be able to use an SMT to convert the timestamp before it even reaches the partitioner

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