Skip to content

Enable convert processor to support Long and Double#27891

Closed
kiawin wants to merge 2 commits intoelastic:masterfrom
kiawin:23085-convert-processor-support-long-double
Closed

Enable convert processor to support Long and Double#27891
kiawin wants to merge 2 commits intoelastic:masterfrom
kiawin:23085-convert-processor-support-long-double

Conversation

@kiawin
Copy link
Copy Markdown
Contributor

@kiawin kiawin commented Dec 19, 2017

Code written based on feature request #23085 with consideration taken from #23423.

@elasticmachine
Copy link
Copy Markdown
Collaborator

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?

@kiawin kiawin changed the title Enable convert processor to support Long and Double. #23085 Enable convert processor to support Long and Double Dec 19, 2017
@martijnvg
Copy link
Copy Markdown
Member

@elasticmachine test this please

@martijnvg
Copy link
Copy Markdown
Member

Thanks @kiawin, I'll take a look at this.

@martijnvg martijnvg requested review from martijnvg and removed request for martijnvg December 20, 2017 18:52
@martijnvg martijnvg self-assigned this Dec 20, 2017
Copy link
Copy Markdown
Member

@martijnvg martijnvg left a 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);
Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure, committed :)

Copy link
Copy Markdown
Member

@martijnvg martijnvg left a 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?

@kiawin kiawin closed this Dec 22, 2017
@kiawin kiawin deleted the 23085-convert-processor-support-long-double branch December 22, 2017 06:33
@kiawin
Copy link
Copy Markdown
Contributor Author

kiawin commented Dec 22, 2017

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants