Skip to content

Commit

Permalink
Fix painless script in TSVB (#27173) (#28588)
Browse files Browse the repository at this point in the history
This is a loose forward-port of #25307, which was rushed in for 6.5. I created
this PR to make sure we don't lose the fix.

Part of #elastic/beats#8957.
  • Loading branch information
exekias authored Jan 11, 2019
1 parent 1e2a72a commit f4041b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ describe('bucketTransform', () => {
},
gap_policy: 'skip',
script: {
source: 'params.value > 0 ? params.value : 0',
source: 'params.value > 0.0 ? params.value : 0.0',
lang: 'painless'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default {
value: getBucketsPath(bucket.field, metrics),
},
script: {
source: 'params.value > 0 ? params.value : 0',
source: 'params.value > 0.0 ? params.value : 0.0',
lang: 'painless',
},
gap_policy: 'skip', // seems sane
Expand Down

0 comments on commit f4041b1

Please sign in to comment.