Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented May 10, 2017

This PR adds the parsing logic for the InternalGeoHashGrid aggregation.

Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

left a small comment, LGTM otherwise

Copy link
Member

Choose a reason for hiding this comment

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

can it be null in practice?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, unless the key field was missing in the parsed XContent. I added the non null check just to avoid a NPE in this case.

Copy link
Member

@javanna javanna May 11, 2017

Choose a reason for hiding this comment

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

if it can happen only due to a bug, I would not handle it then. Rather make sure that it is always set through tests or assertions? Or even leave the NPE.

Copy link
Member Author

Choose a reason for hiding this comment

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

I left the NPE

@javanna javanna requested a review from cbuescher May 10, 2017 16:06
Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM

@tlrx tlrx force-pushed the add-parsing-for-geohashgrid-agg branch from 207cf3f to b9da59c Compare May 12, 2017 13:44
@tlrx tlrx merged commit 29a5694 into elastic:feature/client_aggs_parsing May 12, 2017
@tlrx
Copy link
Member Author

tlrx commented May 12, 2017

Thanks @javanna and @cbuescher !

@tlrx tlrx deleted the add-parsing-for-geohashgrid-agg branch May 12, 2017 13:45
javanna pushed a commit to javanna/elasticsearch that referenced this pull request May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants