OpenSearch/modules/lang-painless
Stuart Tettemer 17cda5b2c0
Scripting: Groundwork for caching script results (#49895) (#49944)
In order to cache script results in the query shard cache, we need to
check if scripts are deterministic.  This change adds a default method
to the script factories, `isResultDeterministic() -> false` which is
used by the `QueryShardContext`.

Script results were never cached and that does not change here.  Future
changes will implement this method based on whether the results of the
scripts are deterministic or not and therefore cacheable.

Refs: #49466

**Backport**
2019-12-06 15:08:05 -07:00
..
licenses Painless: Upgrade ASM to 7.2 (#49263) 2019-11-20 07:09:47 -08:00
spi Add annotations to Painless whitelist (#43239) 2019-06-24 09:27:24 -07:00
src Scripting: Groundwork for caching script results (#49895) (#49944) 2019-12-06 15:08:05 -07:00
build.gradle Painless: Upgrade ASM to 7.2 (#49263) 2019-11-20 07:09:47 -08:00