elasticsearch/modules/lang-expression
Luca Cavanna db10810309
Expression script engine cleanups around _value usage (#99706)
We have found some inconsistencies as part of #99667, around the current usages of ReplaceableConstDoubleValueSource in ExpressionsScriptEngine. It looks like _value is exposed to the bindings of score scripts, but setValue is never called hence it will always be 0. That can be replaced with a constant double values source, but the next question is whether it even needs to be added to the bindings then.

Another cleanup discussed in #99667 is throwing UnsupportedOperationException from ReplaceableConstDoubleValueSource#explain as it should never be called. Implementing the method means we need to test it which makes little sense if the method is never called in production code.
2023-09-25 12:25:10 +02:00
..
licenses Add verification metadata for dependencies (#88814) 2022-08-04 09:51:16 +02:00
src Expression script engine cleanups around _value usage (#99706) 2023-09-25 12:25:10 +02:00
build.gradle Upgrade to lucene-9.5.0-snapshot-d19c3e2e0ed (#92957) 2023-01-19 14:07:33 +01:00