Skip to content

Conversation

@kiawin
Copy link
Contributor

@kiawin kiawin commented Dec 19, 2017

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

@elasticmachine
Copy link
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
Member

@elasticmachine test this please

@martijnvg
Copy link
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
@martijnvg martijnvg added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement review v6.2.0 v7.0.0 labels Dec 20, 2017
Copy link
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
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
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
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
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

:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >enhancement v6.2.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants