-
Notifications
You must be signed in to change notification settings - Fork 207
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
Initial work to support core data types in Data Prepper #4496
Initial work to support core data types in Data Prepper #4496
Conversation
…itially created to help connect the convert_entry_type processor with upcoming work for evaluating type information as part of opensearch-project#4478. Signed-off-by: David Venable <[email protected]>
* | ||
* @since 2.8 | ||
*/ | ||
public enum Type { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally had this named as DataType
. Thoughts on the name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like calling it as DataType
than simply calling it as Type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good consolidation!
DOUBLE("double", new DoubleConverter()), | ||
BOOLEAN("boolean", new BooleanConverter()), | ||
LONG("long", new LongConverter()); | ||
INTEGER(Type.INTEGER, new IntegerConverter()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if there are any tests for the config but just want to verify that we aren't breaking the config and requiring caps to not break backwards compatibility with integer
instead of INTEGER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: David Venable <[email protected]>
Description
Currently Data Prepper has a
convert_entry_type
which allows users to convert to a target type. This change creates a new enumType
which I believe we can use as the core enum for all data types going forward.This work can help us keep consistency between
convert_entry_type
, conditionals for evaluating type information (#4478), and future features.Issues Resolved
N/A
Contributes toward: #4478
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.