Skip to content

feat: add FluxRecord.getRow() with response data stored in List#439

Merged
bednar merged 7 commits intomasterfrom
record-row
Oct 6, 2022
Merged

feat: add FluxRecord.getRow() with response data stored in List#439
bednar merged 7 commits intomasterfrom
record-row

Conversation

@michaelahojna
Copy link
Copy Markdown
Contributor

@michaelahojna michaelahojna commented Oct 4, 2022

Proposed Changes

Adding possibility of accessing response data in List FluxRecord.getRow().

In case of using pivot on data, where field contains labels that occur by default in the annotated CSV (f.e. "result" or "table"), could be duplicated column names in response. In that case FluxRecord.getValues() (Map), which can hold only unique keys, doesn't show complete data. This edge case is solved by using FluxRecord.getRow() (List).

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • mvn test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

Copy link
Copy Markdown
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

Thanks for your PR 👍
There are a few requirements that must be be satisfy before we accept the PR:

Comment thread client-core/src/main/java/com/influxdb/query/FluxRecord.java Outdated
Comment thread client-core/src/main/java/com/influxdb/query/FluxRecord.java Outdated
Comment thread examples/README.md Outdated
Comment thread examples/src/main/java/example/RecordRowExample.java Outdated
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 6, 2022

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.40%. Comparing base (97cbf10) to head (3c6788b).
⚠️ Report is 342 commits behind head on master.

Files with missing lines Patch % Lines
...e/src/main/java/com/influxdb/query/FluxRecord.java 66.66% 0 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #439      +/-   ##
============================================
+ Coverage     88.38%   88.40%   +0.01%     
  Complexity      776      776              
============================================
  Files           172      172              
  Lines          6999     7010      +11     
  Branches        377      378       +1     
============================================
+ Hits           6186     6197      +11     
  Misses          693      693              
  Partials        120      120              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bednar bednar marked this pull request as ready for review October 6, 2022 08:33
Comment thread client-core/src/main/java/com/influxdb/query/internal/FluxCsvParser.java Outdated
@michaelahojna michaelahojna requested a review from bednar October 6, 2022 09:54
Copy link
Copy Markdown
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

LGTM 🌹

@bednar bednar merged commit ad018cd into master Oct 6, 2022
@bednar bednar deleted the record-row branch October 6, 2022 11:00
@bednar bednar added this to the 6.7.0 milestone Oct 6, 2022
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