-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Enable convert processor to support Long and Double #27891
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
Enable convert processor to support Long and Double #27891
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
@elasticmachine test this please |
|
Thanks @kiawin, I'll take a look at this. |
martijnvg
left a comment
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 left one commit. Looks good otherwise.
| return LONG.convert(value); | ||
| } catch (IllegalArgumentException e) {} | ||
| try { | ||
| return DOUBLE.convert(value); |
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.
move the double parsing below the float parsing? So that it is consistent with integer/long auto parsing.
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.
sure, committed :)
martijnvg
left a comment
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.
@kiawin Thanks. Do you want squash the last commit into the first commit?
|
Hmm, what's the best practice for squashing? GitHub detected I recreated the branch after I rebase it. Anyway, I submitted another PR in #27957. Thanks :) |
Code written based on feature request #23085 with consideration taken from #23423.