diff options
Diffstat (limited to 'config-model/src/test/derived/rankproperties/rankproperties.sd')
-rw-r--r-- | config-model/src/test/derived/rankproperties/rankproperties.sd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config-model/src/test/derived/rankproperties/rankproperties.sd b/config-model/src/test/derived/rankproperties/rankproperties.sd index a2eb987d4ff..a13b3081ca7 100644 --- a/config-model/src/test/derived/rankproperties/rankproperties.sd +++ b/config-model/src/test/derived/rankproperties/rankproperties.sd @@ -59,4 +59,28 @@ schema rankproperties { } } + rank-profile withconstants1 { + constants { + constant(a) tensor(x[2]) : [1,2] + constant(b) tensor(y[3]) : [3,4,5] + } + function inline usea() { + expression: constant(a)*1.0 + } + function inline useb() { + expression: usea + constant(b) + } + first-phase { + expression: sum(nativeFieldMatch + useb) + } + } + + rank-profile withconstants2 inherits withconstants1 { + function inline usec() { + expression: constant(a)+constant(b) + } + first-phase { + expression: sum(nativeFieldMatch + usec) + } + } } |