aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/slice/test.sd
blob: b42cecaa194590bef3cb576e723a79a97fc1013e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema test {

    document test {
    }

    rank-profile parent {

        function inline myFunction() {
            expression: myValue * query(myTensor){MY_KEY1} * mySlice(query(myTensor))
        }

        function inline myValue() {
            expression: 4
        }

        function inline mySlice(myTensor) {
            # TODO: We are missing type resolving across function calls in serialization,
            #       so using the short form (without 'key') here will fail
            expression: myTensor{key:MY_KEY2}
        }
    }

}