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

Full code for esql article #787

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Full code for esql article #787

merged 4 commits into from
Apr 24, 2024

Conversation

l-trotta
Copy link
Contributor

No description provided.

@l-trotta l-trotta requested a review from swallez April 18, 2024 10:36
Copy link
Member

@swallez swallez left a comment

Choose a reason for hiding this comment

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

Nice example!

Considering that it's a single class, it would probably make sense to move it to java-client/src/main/test/co/elastic/clients/documentation/api_conventions so that we can reuse it in ES|QL-related docs.

Or at least make it a child of the root project, so that we don't have a duplicate Gradle installation and so that it can be compiled as part of the regular build process.


boolean hasNext = true;

while (hasNext) {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: use the more common while(it.hasNext()) construct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it.hasNext() throws an exception if lines are malformed, I wanted to keep everything into the loop so malformed lines can be ignored

Copy link
Member

@swallez swallez left a comment

Choose a reason for hiding this comment

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

LGTM

@l-trotta l-trotta merged commit 90b20ff into main Apr 24, 2024
3 of 4 checks passed
@l-trotta l-trotta deleted the esql-article-code branch April 24, 2024 13:48
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.

2 participants