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

Fix exporter.selectivity for idle periods #1574

Merged
merged 5 commits into from
Apr 23, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Apr 23, 2021

📔 Description

Let's not print NaN in JSON.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

n/t

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Apr 23, 2021
@dominiklohmann dominiklohmann requested a review from a team April 23, 2021 11:09
We now correctly set the `exporter.selectivity` metrics to 1.0 for idle
periods instead of NaN.
JSON does not support `NaN`, `-NaN`, `inf`, and `-inf`. We render these
values as `null` now.
@dominiklohmann dominiklohmann marked this pull request as ready for review April 23, 2021 11:15
My local clang-format 12 disagrees with the CI's clang-format 11 here,
but I consider this one a bug in clang-format 12.
@dominiklohmann dominiklohmann merged commit 71ba629 into master Apr 23, 2021
@dominiklohmann dominiklohmann deleted the topic/query-selectivity-nan branch April 23, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants