-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
[Transform] add support for missing bucket #59591
[Transform] add support for missing bucket #59591
Conversation
Discussionmissing_bucket and missingWith missing_bucket
missing
Adding missing to composite aggsIn order to support |
Pinging @elastic/ml-core (:ml/Transform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically this looks good although it's hard to see the important bits because they're swamped by the simple changes to pass around the extra setting.
I left one question about how it is enforced that missing bucket cannot be used with the time sync field.
...java/org/elasticsearch/xpack/transform/transforms/pivot/CompositeBucketsChangeCollector.java
Outdated
Show resolved
Hide resolved
true, sorry. During implementation I spotted missing code (client builders for geo) and bugs (missing/wrong equals and hash functions). The important bits are in |
I re-worked the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor logging comment.
The change overall looks good.
...n/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformIndexer.java
Outdated
Show resolved
Hide resolved
...n/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformIndexer.java
Outdated
Show resolved
Hide resolved
...n/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformIndexer.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…transform/transforms/TransformIndexer.java Co-authored-by: Benjamin Trent <[email protected]>
…transform/transforms/TransformIndexer.java Co-authored-by: Benjamin Trent <[email protected]>
fff28d5
to
c288bb7
Compare
This issue possibly mentioned in the community Slack (by me). Figured I would drop it here for others who come across this if I am following correctly. If the field you are grouping by does not exist in the document, is it expected that the document will not be in the transformed index? |
Yes it is expected behavior. We only grab docs that have ALL the group_by fields. With the additional support of |
Hey @hendrikmuhs and team! Adding And on a side note which will likely be worth of it's own issue is that editing the JSON Config in Kibana is very slow. Just clicking the Edit JSON takes about 20 seconds for the JSON to load. Then on top of that when you click inside of the loaded JSON and hit a key (such as enter/new line) it takes another 20 seconds. So the editing of this JSON Config is painful to use. Here is a snippet of me trying to add "","" to the Edit JSON Config to demonstrate slowness. (Is it querying every time I make a change?) On a positive note, the API for creating this works flawlessly. 👌 |
The edit issue is tracked in elastic/kibana#83266 and should be fixed in the next version. I don't know the reason of the perceived slowness. @walterra, do you know? |
@nicpenning Hey Nic, how many fields does the index have you're using in the transforms wizard? There's a known issue with indices with 1000+ fields resulting in a slow wizard: elastic/kibana#78590 |
Ahh, that could be it. I am using filebeat-*. Which I am sure you are aware contains a lot of fields if a person is using many integrations. I imagine its well over 3K fields for that index pattern. I suppose the work around is having a more narrow index pattern? |
add support for "missing_bucket" in
group_by
fixes #42941
fixes #55102