Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented May 31, 2022

This rejects mappings that disable the _source but also configure it
to be synthetic because that sort of configuration doesn't make sense
synthetic is a way to enable source at a low cost.

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 31, 2022
@elasticmachine
Copy link
Collaborator

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

@nik9000 nik9000 mentioned this pull request May 31, 2022
50 tasks
This rejects mappings that disable the `_source` but also configure it
to be `synthetic` because that sort of configuration doesn't make sense
- `synthetic` is a way to enable source at a low cost.
return DEFAULT;
}
if (enabled.getValue() == false && synthetic.getValue()) {
throw new IllegalArgumentException("_source may not be disabled when setting [synthetic: false]");
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be synthetic: true?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup.

@nik9000 nik9000 requested a review from romseygeek June 6, 2022 18:49
@nik9000
Copy link
Member Author

nik9000 commented Jun 7, 2022

@romseygeek could you have another look at this one?

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

@nik9000 nik9000 merged commit 1f7d156 into elastic:master Jun 7, 2022
@nik9000
Copy link
Member Author

nik9000 commented Jun 7, 2022

Thanks @romseygeek !

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

Labels

>non-issue :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants