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

Ingest - types testing #1129

Merged
merged 8 commits into from
Dec 30, 2024
Merged

Ingest - types testing #1129

merged 8 commits into from
Dec 30, 2024

Conversation

nablaone
Copy link
Member

@nablaone nablaone commented Dec 19, 2024

This PR adds an ingest test to check what types are supported. The test is quite strict right now. It compares the ingested field value literally with the query result. A less strict human/Kibana-acceptable comparison will be added in the future.

It prints the following table:

Screenshot 2024-12-20 at 11 52 48

@nablaone nablaone requested a review from a team as a code owner December 19, 2024 14:54
@nablaone nablaone marked this pull request as draft December 19, 2024 14:54
@nablaone nablaone marked this pull request as ready for review December 20, 2024 11:24
Comment on lines 688 to 699
// Struct to parse only the `fields` tree
type Hit struct {
Fields map[string][]string `json:"fields"`
}

type HitsWrapper struct {
Hits []Hit `json:"hits"`
}

type Response struct {
Hits HitsWrapper `json:"hits"`
}
Copy link
Member

Choose a reason for hiding this comment

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

Ah, and they are redeclared here ;) One of two declarations should probably go.

@trzysiek
Copy link
Member

I like this a lot! Left a few nitpicks myself + there's a more important Przemek's question.

@trzysiek trzysiek self-requested a review December 30, 2024 14:01
@nablaone nablaone added this pull request to the merge queue Dec 30, 2024
Merged via the queue into main with commit e556ec5 Dec 30, 2024
5 checks passed
@nablaone nablaone deleted the pr-ingest-types branch December 30, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants