We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
InfluxQLQueryApi.query()
Steps to reproduce:
InfluxQLQueryResult result = client.getInfluxQLQueryApi().query(new InfluxQLQuery("show field keys", "myBucket"));
Expected behavior: Code above should return empty result: result.getResults() should return an empty List.
result.getResults()
List
Actual behavior: Code returns null, despite method query(...) being annotated @NonNull.
query(...)
@NonNull
Specifications:
7.1.0
v2.7.6
openjdk 17.0.11 2024-04-16
ArchLinux 6.9.5-arch1-1
I believe error is somewhere in AbstractQueryApi class, in bodyConsumer (lines 118+):
AbstractQueryApi
BufferedSource source = body.source(); while(source.isOpen() && !source.exhausted() && !cancellable.wasCancelled) { // consumer won't be executed when body is empty consumer.accept(cancellable, source); }
The text was updated successfully, but these errors were encountered:
Hi @marcinkoziarz,
Thank you for reporting this issue. We will address it in PR #733.
Best regards
Sorry, something went wrong.
fix: fixes #744 and possible NPEs
7a568e3
7b39e0c
karel-rehor
Successfully merging a pull request may close this issue.
Steps to reproduce:
InfluxQLQueryResult result = client.getInfluxQLQueryApi().query(new InfluxQLQuery("show field keys", "myBucket"));
Expected behavior:
Code above should return empty result:
result.getResults()
should return an emptyList
.Actual behavior:
Code returns null, despite method
query(...)
being annotated@NonNull
.Specifications:
7.1.0
v2.7.6
openjdk 17.0.11 2024-04-16
ArchLinux 6.9.5-arch1-1
I believe error is somewhere in
AbstractQueryApi
class, in bodyConsumer (lines 118+):The text was updated successfully, but these errors were encountered: