Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

when sum(a * b) return 0 #777

Open
leeqianjun opened this issue Jul 14, 2021 · 1 comment
Open

when sum(a * b) return 0 #777

leeqianjun opened this issue Jul 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@leeqianjun
Copy link

based on the opendistroFor es,

when run the function select sum(a * b) from T1
the result is 0

@leeqianjun leeqianjun added the bug Something isn't working label Jul 14, 2021
@Frances-zy
Copy link

the same problem! the explain is

"total" : {
"sum" : {
"script" : {
"source" : "def multiply_1 = doc['a'].value * doc['b'].value",
"lang" : "painless"
}
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants