Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compiler/ztests/lift-filters.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
super compile -C -O -dynamic 'from f | values {a:b,c:d} | where a==1 and c==2'
echo ===
Expand Down
2 changes: 2 additions & 0 deletions compiler/ztests/merge-filters.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
super compile -C -O 'from /dev/null | where a | where b'
echo ===
Expand Down
2 changes: 2 additions & 0 deletions compiler/ztests/pushdown.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
echo === debug
super compile -C -O 'from /dev/null | debug a | values b'
Expand Down
2 changes: 2 additions & 0 deletions compiler/ztests/remove-passops.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: super compile -O -C 'from /dev/null | x>1 | pass | pass | x>2 | pass'

outputs:
Expand Down
2 changes: 0 additions & 2 deletions compiler/ztests/repeated-from-subquery.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
script: super -s -c "values 1,2,3 | {x:[cross join (from in.sup)]}"

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 2 additions & 0 deletions compiler/ztests/runtime-select.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
# Check the environment variable works.
SUPER_RUNTIME=vam super compile -dag -C -runtime 'values "foo"'
Expand Down
2 changes: 0 additions & 2 deletions compiler/ztests/sql/cte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
super -s -c 'with x as ( select 1 as y ) select z.y from x as z'
! super -c 'with x as ( select 1 as y ), x as ( select 2 as y ) select * from x'

vector: true

inputs:
- name: sales.spq
data: |
Expand Down
2 changes: 0 additions & 2 deletions compiler/ztests/sql/subqueries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ script: |
# pass errors through unmodified, i.e., do not turn into missing
super -s -c "select (values error('foo')) as e"

vector: true

outputs:
- name: stdout
data: |
Expand Down
2 changes: 2 additions & 0 deletions csup/ztests/empty-file.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
! super -i csup /dev/null

Expand Down
2 changes: 2 additions & 0 deletions db/ztests/consecutive-ts.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
export SUPER_DB=test
super db init -q
Expand Down
2 changes: 2 additions & 0 deletions db/ztests/dirs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
export SUPER_DB=test
super db init -q
Expand Down
7 changes: 4 additions & 3 deletions runtime/sam/expr/expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ func testSuccessful(t *testing.T, e, input, expected string) {
input = "{}"
}
zt := ztest.ZTest{
SPQ: fmt.Sprintf("values %s", e),
Input: &input,
Output: expected + "\n",
Runtime: new("sam"),
SPQ: fmt.Sprintf("values %s", e),
Input: &input,
Output: expected + "\n",
}
if err := zt.RunInternal(t.Context()); err != nil {
t.Fatal(err)
Expand Down
4 changes: 3 additions & 1 deletion runtime/sam/op/meta/ztests/pruner.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This test makes sure the type context from metadata processing doesn't
runtime: sam

# This test makes sure the type context from metadata processing doesn't
# leak into the flowgraph, except for metaqueries, where it should.
script: |
export SUPER_DB=test
Expand Down
2 changes: 2 additions & 0 deletions runtime/sam/op/ztests/rename-dynamic-field.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
runtime: sam

script: |
echo '{target:"foo",src:"bar"} {target:"fool",src:"baz"}' | super -s -c 'rename this[target] := src' -
echo '// ==='
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/expr/cut-dup-fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
! super -s -c "cut rec.sub,rec.sub.sub" in.sup
! super -s -c "cut rec.sub.sub,rec.sub" in.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/expr/cut-not-adjacent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
! super -s -c "cut rec1.rec2.sub1,other,rec1.rec2.sub2" in.sup
! super -s -c "cut t.rec.sub1,t.other,t.rec.sub2" in.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/expr/math-coerce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ script: |
done
done

vector: true

inputs:
- name: types.txt
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/expr/port-math.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ script: |
echo ===
super -s -c "put x:=a+p1+p2" in.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/expr/queryexpr-from-eval.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
script: super -s -I query.spq

vector: true

inputs:
- name: query.spq
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/aggregate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ script: |
echo === reverse-sorted-null ===
super -s -c "count() by ts:=bucket(ts, 1s) | sort this" in-rev.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/args.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
! super -s -c "$agg()" in.sup
done

vector: true

inputs:
- name: in.sup
data: "{}"
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/collect-partial-view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
script: |
super -s -c 'from "test.sup" | collect(a) by b | sort b'

vector: true

inputs:
- name: test.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/container-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ script: |
super -s -c "union(x) by key with -limit 1 | sort key" in.sup > union.sup
super -s -c "collect(x) by key with -limit 1 | sort key" in.sup > collect.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ script: |
super -s -c "union(x)" in.sup > union.sup
super -s -c "collect(x)" in.sup > collect.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/distinct-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ script: |
sum(distinct n) by key
| sort key'

vector: true

inputs:
- name: test.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/math-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ script: |
super -s -c "min(n) by key with -limit 1 | sort key" in.sup > min.sup
super -s -c "max(n) by key with -limit 1 | sort key" in.sup > max.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/aggregate/math.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ script: |
super -s -c "min(n)" in.sup > min.sup
super -s -c "max(n)" in.sup > max.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ script: |
>&2 echo // ===
! super -s -c 'count {foo:"foo",1}'

vector: true

outputs:
- name: stdout
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/cut-nested.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ script: |
echo ===
super -s -c "cut rec1.sub1.foo,rec1['sub2']['bar'],rec2.foo,foo" nested2.sup

vector: true

inputs:
- name: nested1.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/debug-filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ script: |
super -s -c 'values {x:1,y:2},{x:3,y:4} | debug {debug:y} filter (x=1)'
super -s -c 'values {x:1,y:2},{x:3,y:4} | debug filter (x=1)'

vector: true

outputs:
- name: stdout
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/debug-into.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ script: |
echo ===
super -s -I q2.spq 2>&1 | super -s -c "sort this" -

vector: true

inputs:
# from issue #6681
- name: q1.spq
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/debug.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super -s -c 'values "foo", "bar" | debug f"debug: {this}" | values f"{this}2" | head 1'

vector: true

outputs:
- name: stdout
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/distinct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ script: |
echo ===
super -s -c 'from "3.sup" | unnest this into (distinct this | count())'

vector: true

inputs:
- name: 1.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/fuse-spill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
script: |
super -s -fusemem 13B -c blend in.sup

vector: true

inputs:
- name: in.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-empty-inner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
echo === nested loop join
super -dynamic -s -c 'left join (from C.sup) on left.a<right.a | values {...left,hit:right.sc} | sort' A.sup

vector: true

inputs:
- name: A.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-from-pass.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
script: super -s -I join.spq left.sup

vector: true

inputs:
- name: join.spq
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-kinds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ script: |
echo === cross
super -s -c 'cross join (from C.sup) | values {...left,...right} | sort b, sb, c' B.sup

vector: true

inputs:
- name: A.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-stdin.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super -s -c 'join (from B.sup) on left.a=right.b | values {...left,b:right.b}' -

vector: true

inputs:
- name: stdin
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-subquery.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super -s -c 'from a.sup | inner join (from b.sup) on left.a=right.b | values left | sort'

vector: true

inputs:
- name: a.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/join-union.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ script: |
echo // nested loop join
super -s -c 'from a.sup | inner join (from b.sup) on left.a<right.b | values left | sort'

vector: true

inputs:
- name: a.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/robot-array.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super -s -c 'from which.sup | values "a"||val::string||".sup","a"||(val+1)::string||".sup" | select s from f"{this}"'

vector: true

inputs:
- name: which.sup
data: |
Expand Down
4 changes: 0 additions & 4 deletions runtime/ztests/op/robot-basic.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super -s -c 'from files.sup | from f"{f}"'

vector: true

inputs:
- name: files.sup
data: |
Expand All @@ -26,8 +24,6 @@ outputs:
script: |
super -s -c 'values "a", "b" | ( from f"{this}.sup" | head 1 )'

vector: true

inputs:
- name: a.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/robot-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ script: |
echo ===
super -s -c 'from files.sup | select value this from [f]'

vector: true

inputs:
- name: files.sup
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/skip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ script: |
seq 1000 | super -s -c 'skip 900 | head 1' -
! super -c 'skip "hello"'

vector: true

outputs:
- name: stdout
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/user-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ script: |
! super compile -dag -I error-duplicate-parameters.spq
! super compile -dag -I error-const-lhs.spq

vector: true

inputs:
- name: error-duplicate-parameters.spq
data: |
Expand Down
2 changes: 0 additions & 2 deletions runtime/ztests/op/user-from.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
script: |
super - | super -s -I test.spq

vector: true

inputs:
- name: test.spq
data: |
Expand Down
Loading
Loading