opensearch-project / opensearch-project/data-prepper

Support a destination_format option in the date processor to format result with DateTimeFormatter

Open
#3,537 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
374
Forks
355
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
As a user of the date processor, I am unable to format the result of the conversion of my dates to ISO_8601 format strings. The result of the string is always the entire timestamp String (2023-07-23T15:28:15.081-05:00).

Describe the solution you'd like
An optional parameter in the date processor named destination_format. This format can be https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html similar to the OpenSearch index, and will take the ISO_8601 timestamp String that is generated by the Date processor and format it to the DateTimeFormat specified

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the date processor and its existing ISO_8601 result conversion. Check how an optional destination_format would be parsed with Java's DateTimeFormatter, then verify that the formatted result matches the requested pattern while preserving current behavior when the option is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.