Fix painless script in TSVB (#27173) (#28589)

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.
This commit is contained in:
Carlos Pérez-Aradros Herce 2019-01-11 18:18:26 +01:00 committed by GitHub
parent 9e1ce16ebd
commit f2ba6b01a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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'
}
}

View file

@ -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