Skip to content

add ability to add nested field values to Data document#14250

Merged
talevy merged 2 commits intoelastic:feature/ingestfrom
talevy:ingest/data-add-field-path
Oct 28, 2015
Merged

add ability to add nested field values to Data document#14250
talevy merged 2 commits intoelastic:feature/ingestfrom
talevy:ingest/data-add-field-path

Conversation

@talevy
Copy link
Copy Markdown
Contributor

@talevy talevy commented Oct 22, 2015

Small commit to add ability to add nested paths.

This will be used by processors such as mutate for building custom document structure.

@talevy talevy added :Distributed/Ingest Node Execution or management of Ingest Pipelines review labels Oct 22, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

When we back port this to the 2.x branch then this will fail because putIfAbsent is java8 only... Fixing this would be easy and I think in master we should keep this. Maybe just add a comment saying that when we back port we need to add a helper method or something like that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh, no its fine. I was just in search of ways to reduce conditional branches to make things more readable. I will just go ahead and add an if to remove this java8 dep

@martijnvg
Copy link
Copy Markdown
Member

Left some minor comments OTT LGTM.

@talevy talevy force-pushed the ingest/data-add-field-path branch from 2add01f to cf52ab5 Compare October 27, 2015 22:21
@talevy
Copy link
Copy Markdown
Contributor Author

talevy commented Oct 28, 2015

tests added. @martijnvg, mind taking another look at this?

I will add more functionality in another PR to respond to this: #14324.

@martijnvg
Copy link
Copy Markdown
Member

LGTM

talevy added a commit that referenced this pull request Oct 28, 2015
add ability to add nested field values to Data document
@talevy talevy merged commit 343fa47 into elastic:feature/ingest Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants