Debian Codegraph @

test/command/suite/select/function/escalate/and_not_escalate.test

raw
1 table_create Numbers TABLE_NO_KEY
2 column_create Numbers data1 COLUMN_SCALAR Int32
3 column_create Numbers data2 COLUMN_SCALAR Int32
4 column_create Numbers data3 COLUMN_SCALAR Int32
5
6 load --table Numbers
7 [
8 ["data1", "data2", "data3"],
9 [1, 10, 100],
10 [2, 20, 200],
11 [3, 30, 300],
12 [4, 40, 400],
13 [5, 50, 500],
14 [6, 60, 600],
15 [7, 70, 700],
16 [8, 80, 800],
17 [9, 90, 900],
18 [10, 100, 1000]
19 ]
20
21 select Numbers \
22 --filter "data1 <= 5 &! \
23 escalate('data1 >= 3', \
24 3, 'data2 == 40', \
25 1, 'NOT USED')"
26