Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Nov 6, 2020

This commit changes the cartesian mapper tests (point and shape fields) so that they use MapperTestCase. In addition the tests are moved out of InternalclusterTest as they do not need to spin up a cluster any more.

@iverase iverase added >test Issues or PRs that are addressing/adding tests :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 v7.11.0 labels Nov 6, 2020
@iverase iverase requested a review from romseygeek November 6, 2020 12:53
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Nov 6, 2020
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM! Good to see more of these being converted, thanks @iverase

b.field("store", true);
}));

SourceToParse sourceToParse = new SourceToParse("test", "1",
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also use the source method, which simplifies this a bit:

SourceToParse sourceToParser = source(b -> {
    b.startObject(FIELD_NAME).field("x", 2000.1).field("y", 305.6).endObject();
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am changing it, I was unhappy with that.

@iverase
Copy link
Contributor Author

iverase commented Nov 6, 2020

@elasticmachine update branch

@iverase
Copy link
Contributor Author

iverase commented Nov 6, 2020

@elasticmachin run elasticsearch-ci/bwc

@iverase
Copy link
Contributor Author

iverase commented Nov 6, 2020

@elasticmachine update branch

@iverase iverase merged commit 038fc35 into elastic:master Nov 6, 2020
@iverase iverase deleted the cartesianMapperTests branch November 6, 2020 15:36
iverase added a commit that referenced this pull request Nov 6, 2020
This commit changes the cartesian mapper tests (point and shape fields) so that they use MapperTestCase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v7.11.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants