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

[Transform] randomize integration tests using runtime fields #66148

Merged

Conversation

hendrikmuhs
Copy link

this change adds coverage for runtime fields to the continuous transform integration test cases. runtime fields are configured at random.

Note: I haven't changed integration tests for latest, because of the ongoing fields API rewrite.

@hendrikmuhs hendrikmuhs added >test Issues or PRs that are addressing/adding tests v8.0.0 :ml/Transform Transform v7.11.0 labels Dec 10, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

.endObject();

// random overlay of existing field
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

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

LGTM

I've left one comment.

new GroupConfig.Builder().groupBy("event", new TermsGroupSource.Builder().setField("event").setMissingBucket(missing).build())
.build()
new GroupConfig.Builder().groupBy(
"event",
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 termsField?

Copy link
Author

Choose a reason for hiding this comment

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

no, this is the output field name, on the next line there is setField(termsField)

Having that said, it would be more understandable if input and output use different names

@hendrikmuhs hendrikmuhs merged commit 1ced913 into elastic:master Dec 14, 2020
@hendrikmuhs hendrikmuhs deleted the transform-runtime-field-it-random branch December 14, 2020 14:22
hendrikmuhs pushed a commit that referenced this pull request Dec 14, 2020
this change adds coverage for runtime fields to the continuous transform integration test cases. runtime fields are configured at random.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml/Transform Transform >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.

5 participants