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

Cusum() function in Timelion returns no values when applied on a log() seriesList with first bucket value null #87077

Closed
GeorgeRD opened this issue Dec 30, 2020 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Timelion Timelion app and visualization impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@GeorgeRD
Copy link

Kibana version: 6.8.10

Elasticsearch version: 6.8.10

Server OS version: CentOS 7

Browser version: Chrome 87.0.4280.88 (Official Build) (64-bit)

Browser OS version: Windows 10 Home

Original install method (e.g. download page, yum, from source, etc.): yum

Describe the bug:
The cusum() function in Timelion does not return any results when applied in a logarithmic series with null value in its first point.

Steps to reproduce:

  1. Create a derivative seriesList in Timelion (first point in derivative series is null)
  2. Apply the log() function in the seriesList and check that results are returned (first point in derivative series is also null)
  3. Apply the cusum() function in the logarithmic series. All points returned are null

Workaround:
After the derivative series, apply a condition(operator=eq, if=null, then=1) and then proceed with log() and cusum().

Expected behavior:
Data expected to return for those values present

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@marius-dr marius-dr added bug Fixes for quality problems that affect the customer experience Feature:Timelion Timelion app and visualization labels Dec 31, 2020
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jan 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@timroes timroes added the impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. label Jul 22, 2021
@flash1293
Copy link
Contributor

The issue here isn't the null value in the first bucket, it's because .derivative() is returning negative values which become NaN when log is applied to them (because the logarithm of a negative number isn't a real number). On summing up all of the NaNs, the cumulative sum of them is NaN as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Timelion Timelion app and visualization impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants