Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change pipe symbol #5427

Merged
merged 2 commits into from
Nov 3, 2024
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: 1 addition & 1 deletion cmd/super/db/manage/ztests/compact-size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ script: |
seq 100 150 | super -c '{ts:this,x:1}' - | super db load -q -
seq 200 250 | super -c '{ts:this,x:1}' - | super db load -q -
super db manage -q
super db query -z 'from test@main:objects | drop id'
super db query -z 'from test@main:objects |> drop id'

outputs:
- name: stdout
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/db/manage/ztests/compact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ script: |
seq 200 | super -c '{ts:this}' - | super db load -q -
done
super db manage -q
super db query -z 'from test@main:objects | drop id'
super db query -z 'from test@main:objects |> drop id'

outputs:
- name: stdout
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/db/manage/ztests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ script: |
super db create -q test3
super db branch -use test2 -q live
super db manage -config=inherit.yaml -log.path=inherit.log
super -Z -c 'msg == "updating pool" | cut name, branch | sort name' inherit.log > inherit.jsup
super -Z -c 'msg == "updating pool" |> cut name, branch |> sort name' inherit.log > inherit.jsup

inputs:
- name: inherit.yaml
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/db/manage/ztests/overlap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ script: |
seq 100 | super -c '{ts:this,x:1}' - | super db load -q -
done
super db manage -q
super db query -z 'from test@main:objects | drop id'
super db query -z 'from test@main:objects |> drop id'

outputs:
- name: stdout
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/db/manage/ztests/pool-flag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ script: |
super db create -q test3
super db create -q test4
super db manage -pool test2 -pool test4 -log.path=manage.log
super -z -c 'msg == "updating pool" | yield name' manage.log
super -z -c 'msg == "updating pool" |> yield name' manage.log

outputs:
- name: stdout
Expand Down
4 changes: 2 additions & 2 deletions cmd/super/db/manage/ztests/vectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ script: |
seq 1 10 | super -c '{ts:this}' - | super db load -q -
seq 1 10 | super -c '{ts:this}' - | super db load -q -
super db manage -log.level=warn -q -vectors
super db query -z 'from test1@main:vectors | drop id'
super db query -z 'from test1@main:vectors |> drop id'
echo '// Test create vector on single object.'
super db create -use -q test2
seq 1 10 | super -c '{ts:this}' - | super db load -q -
super db manage -log.level=warn -q -vectors
super db query -z 'from test2@main:vectors | drop id'
super db query -z 'from test2@main:vectors |> drop id'

outputs:
- name: stdout
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/db/ztests/query-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ script: |
super db init -q
super db create -q test
super db load -q -use test babble.jsup
super db query -s -z "from test | count()"
super db query -s -z "from test |> count()"

inputs:
- name: babble.jsup
Expand Down
4 changes: 2 additions & 2 deletions cmd/super/internal/lakemanage/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func scan(ctx context.Context, it *objectIterator, pool *pools.Config, runCh cha

const iteratorQuery = `
from %q@%q:objects
| left join (from %q@%q:vectors) on id=id vector:=true
| sort min
|> left join (from %q@%q:vectors) on id=id vector:=true
|> sort min
`

type objectIterator struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/super/ztests/call-user-op-with-src.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
- name: countfile.zed
data: |
op countfile(): (
file test.jsup | count()
file test.jsup |> count()
)
- name: test.jsup
data: '{} {} {} {}'
Expand Down
8 changes: 4 additions & 4 deletions cmd/super/ztests/single-arg-error.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
script: |
! super -c 'file sample.jsup | count('
! super -c 'file sample.jsup |> count('

outputs:
- name: stderr
data: |
parse error at line 1, column 26:
file sample.jsup | count(
=== ^ ===
parse error at line 1, column 27:
file sample.jsup |> count(
=== ^ ===
2 changes: 1 addition & 1 deletion compiler/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func VectorFilterCompile(rctx *runtime.Context, query string, env *exec.Environm
if err != nil {
return nil, err
}
ast, err := parser.ParseQuery(fmt.Sprintf("%s | %s", spec, query))
ast, err := parser.ParseQuery(fmt.Sprintf("%s |> %s", spec, query))
if err != nil {
return nil, err
}
Expand Down
Loading