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

engine: new interpreter, query planner #1166

Merged
merged 8 commits into from
Dec 19, 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
4 changes: 2 additions & 2 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ jobs:

- name: Compile packages, apps, and specs
run: |
go build -mod=readonly ./... ./core/... ./parse/...
go build -mod=readonly ./... ./core/...

- name: Lint
uses: golangci/golangci-lint-action@v6.1.1
with:
install-mode: "binary"
version: "latest"
args: ./... ./core/... ./parse/... --timeout=10m --config=.golangci.yml
args: ./... ./core/... --timeout=10m --config=.golangci.yml

# unit test
- name: Run unit test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ jobs:

- name: Compile packages, apps, and specs
run: |
go build -mod=readonly ./... ./core/... ./parse/... ./test/specifications/
go build -mod=readonly ./... ./core/... ./test/specifications/

- name: Lint
uses: golangci/golangci-lint-action@v6.1.0
with:
install-mode: "binary"
version: "latest"
args: ./... ./core/... ./parse/... ./test/... --timeout=10m --config=.golangci.yml
args: ./... ./core/... ./test/... --timeout=10m --config=.golangci.yml

# unit test
- name: Run unit test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kgw-test-reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Init workspace
run: |
go work init . ./test ./parse ./core
go work init . ./test ./core

- name: Generate go vendor
run: |
Expand Down
5 changes: 1 addition & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ run:

issues:
exclude-dirs:
- parse/sql/gen
- parse/procedures/gen
- parse/kuneiform/gen
- parse/actions/gen
- node/engine/parse/gen

output:
formats:
Expand Down
22 changes: 6 additions & 16 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tasks:

work:
cmds:
- cmd: go work init . ./core ./parse ./test
- cmd: go work init . ./core ./test
ignore_error: true
generates:
- go.work
Expand All @@ -25,7 +25,7 @@ tasks:
# so we have to list all the folders that are adjacent generated code.
- |
goimports -format-only -w ./app ./cmd ./common ./core ./node ./testing \
./extensions ./parse/*.go ./parse/wasm ./parse/postgres
./extensions

tidy:
desc: go mod tidy each module
Expand All @@ -34,7 +34,6 @@ tasks:
# and from bottom to top in terms of dependencies.
- |
(cd core; go mod tidy)
(cd parse; go mod tidy)
go mod tidy
# (cd test; go mod tidy)
# (cd core/client/example; go mod tidy)
Expand Down Expand Up @@ -77,22 +76,15 @@ tasks:
- go run ./cmd/kwild/generate -out ./gen
- go run ./cmd/kwil-cli/generate -out ./gen

kuneiform:wasm:
desc: Build the kuneiform wasm
cmds:
- rm -rf ./parse/wasm/*.{wasm,tar.gz}
- go generate ./parse/wasm/wasm.go
- tar -czvf ./parse/wasm/kuneiform_wasm.tar.gz ./parse/wasm/kuneiform.wasm

kuneiform:grammar:
desc: Generate kuneiform grammar go code.
cmds:
- rm -rf parse/gen/*
- cd parse/grammar/ && ./generate.sh
- rm -rf node/engine/parse/gen/*
- cd node/engine/parse/grammar/ && ./generate.sh
sources:
- parse/grammar/*.g4
- node/engine/parse/grammar/*.g4
generates:
- parse/gen/*.{go,interp,tokens}
- node/engine/parse/gen/*.{go,interp,tokens}

# ************ docker ************
vendor:
Expand Down Expand Up @@ -230,14 +222,12 @@ tasks:
desc: Run unit tests
cmds:
- go test ./core/... -tags=ext_test -count=1
- CGO_ENABLED=1 go test ./parse/... -tags=ext_test -count=1
- CGO_ENABLED=1 go test ./... -tags=ext_test,pglive -count=1 -p=1 # no parallel for now because several try to use one pg database

test:unit:race:
desc: Run unit tests with the race detector
cmds:
- go test ./core/... -tags=ext_test -count=1 -race
- CGO_ENABLED=1 go test ./parse/... -tags=ext_test -count=1 -race
- CGO_ENABLED=1 go test ./... -tags=ext_test,pglive -count=1 -race

# test:it:
Expand Down
80 changes: 0 additions & 80 deletions _previous/core/types/_numbers/big/big.go

This file was deleted.

3 changes: 0 additions & 3 deletions _previous/core/types/_numbers/big/errors.go

This file was deleted.

52 changes: 0 additions & 52 deletions _previous/core/types/_numbers/polynomial/funcs.go

This file was deleted.

Loading
Loading