Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically adjust ignore_malformed only for the @timestamp #109948

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

javanna
Copy link
Member

@javanna javanna commented Jun 19, 2024

We introduced automatic disabling ignore_malformed for the @timestamp field with #99346, but the change was applied to any field with name @timestamp under any path, while it should have been applied only to the top-level @timestamp field.

Relates to #107760

@javanna javanna added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types auto-backport Automatically create backport pull requests when merged v8.15.0 v8.14.2 labels Jun 19, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jun 19, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine
Copy link
Collaborator

Hi @javanna, I've created a changelog YAML for you.

Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM makes sense to me

@@ -359,7 +359,7 @@ public DateFieldMapper build(MapperBuilderContext context) {
);

Long nullTimestamp = parseNullValue(ft);
if (name().equals(DataStreamTimestampFieldMapper.DEFAULT_PATH)
Copy link
Member

Choose a reason for hiding this comment

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

I like the TODO on name() :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think that this is a good reason to finally remove the TODO, I think I added the TODO 5ish years ago....

javanna and others added 2 commits July 1, 2024 14:17
We introduced automatic disabling ignore_malformed for the @timestamp field with elastic#99346, but the change
was applied to any field with name @timestamp under any path, while it should have been applied
only to the top-level @timestamp field.

Relates to elastic#107760
@javanna javanna force-pushed the fix/ignore_malformed_timestamp_object branch from 346167c to 0c21a27 Compare July 1, 2024 12:17
@javanna javanna merged commit 42564fc into elastic:main Jul 1, 2024
15 checks passed
@javanna javanna deleted the fix/ignore_malformed_timestamp_object branch July 1, 2024 19:47
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.14 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 109948

javanna added a commit to javanna/elasticsearch that referenced this pull request Jul 2, 2024
…c#109948)

We introduced automatic disabling ignore_malformed for the @timestamp field with elastic#99346, but the change
was applied to any field with name @timestamp under any path, while it should have been applied
only to the top-level @timestamp field.

Relates to elastic#107760
javanna added a commit that referenced this pull request Jul 2, 2024
We introduced automatic disabling ignore_malformed for the @timestamp field with #99346, but the change
was applied to any field with name @timestamp under any path, while it should have been applied
only to the top-level @timestamp field.

Relates to #107760
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged backport pending >bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v8.14.3 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants