Skip to content

Commit

Permalink
Fix painless script in TSVB
Browse files Browse the repository at this point in the history
This is a loose forward-port of elastic#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
tsg committed Dec 13, 2018
1 parent cb48cd6 commit ec194e3
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 ec194e3

Please sign in to comment.