Skip to content

Commit

Permalink
use forked go-zetsql without alias in go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Matan Levy committed Dec 17, 2023
1 parent a2b387f commit 9f9eae6
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 19 deletions.
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ module github.com/goccy/bigquery-emulator

go 1.18

replace github.com/goccy/go-zetasqlite => github.com/MatanLevy/go-zetasqlite v0.17.8

require (
cloud.google.com/go/bigquery v1.51.0
cloud.google.com/go/storage v1.29.0
github.com/GoogleCloudPlatform/golang-samples/bigquery v0.0.0-20221115172052-07ffb99455e8
github.com/MatanLevy/go-zetasqlite v0.17.11
github.com/apache/arrow/go/v10 v10.0.1
github.com/fsouza/fake-gcs-server v1.43.0
github.com/go-playground/validator/v10 v10.11.0
github.com/goccy/go-json v0.10.0
github.com/goccy/go-yaml v1.9.5
github.com/goccy/go-zetasql v0.5.1
github.com/goccy/go-zetasqlite v0.17.8
github.com/goccy/go-zetasql v0.5.2
github.com/google/go-cmp v0.5.9
github.com/googleapis/gax-go/v2 v2.7.1
github.com/gorilla/mux v1.8.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ github.com/DataDog/go-hll v1.0.2/go.mod h1:nVlk+LiOuLOBG2pl+DJtGYBr6r6CUH/bGqebz
github.com/GoogleCloudPlatform/golang-samples/bigquery v0.0.0-20221115172052-07ffb99455e8 h1:jEVA33EPpr9R1Uc2vhxqd+PefUOqaYy5rAzC9haWPVg=
github.com/GoogleCloudPlatform/golang-samples/bigquery v0.0.0-20221115172052-07ffb99455e8/go.mod h1:VB6n8DYUiQ07iCBJ5MTjHy8+zI5FNiNT0IDbZ00nhAc=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU=
github.com/MatanLevy/go-zetasqlite v0.17.8 h1:tTTSXT35X+2TLtZz8dAAhY+h6kFODEuRZCEBFqpijRw=
github.com/MatanLevy/go-zetasqlite v0.17.8/go.mod h1:ocaF4qqZZjRXoaBnTFzYDdgLHP2OAgFcTrQQCQyWN5w=
github.com/MatanLevy/go-zetasqlite v0.17.11 h1:V0ghPwuV1ilpTDEqdMA56qCJ8AcTxzhNcaZjtKMT40I=
github.com/MatanLevy/go-zetasqlite v0.17.11/go.mod h1:l1C/Lr+e3jA0MVpueHMy7xSIBRsoHijoXI8LKwp81wI=
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/apache/arrow/go/v10 v10.0.1 h1:n9dERvixoC/1JjDmBcs9FPaEryoANa2sCgVFo6ez9cI=
Expand Down Expand Up @@ -79,8 +79,8 @@ github.com/goccy/go-json v0.10.0 h1:mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA=
github.com/goccy/go-json v0.10.0/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/goccy/go-yaml v1.9.5 h1:Eh/+3uk9kLxG4koCX6lRMAPS1OaMSAi+FJcya0INdB0=
github.com/goccy/go-yaml v1.9.5/go.mod h1:U/jl18uSupI5rdI2jmuCswEA2htH9eXfferR3KfscvA=
github.com/goccy/go-zetasql v0.5.1 h1:vP9wgUH5gylw8yL+gwO0wF7uW/fW5Dr1AAAzi8Kgevg=
github.com/goccy/go-zetasql v0.5.1/go.mod h1:6W14CJVKh7crrSPyj6NPk4c49L2NWnxvyDLsRkOm4BI=
github.com/goccy/go-zetasql v0.5.2 h1:W4b4B14iZOYJSzPLTc5mRw1sEkg5gg6EFlZ1XVo63Eo=
github.com/goccy/go-zetasql v0.5.2/go.mod h1:xvvooX2RG404vnbdFZuAM8bTFksYwVUlqeIUrUNuo40=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
Expand Down
3 changes: 1 addition & 2 deletions internal/connection/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import (
"context"
"database/sql"
"fmt"

"github.com/goccy/go-zetasqlite"
"github.com/MatanLevy/go-zetasqlite"
)

type Manager struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/contentdata/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"database/sql"
"fmt"
"github.com/MatanLevy/go-zetasqlite"
"reflect"
"sort"
"strings"

"github.com/goccy/go-zetasqlite"
"go.uber.org/zap"
bigqueryv2 "google.golang.org/api/bigquery/v2"

Expand Down
2 changes: 1 addition & 1 deletion internal/metadata/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"database/sql"
"errors"
"fmt"
"github.com/MatanLevy/go-zetasqlite"

"github.com/goccy/go-json"
"github.com/goccy/go-zetasqlite"
bigqueryv2 "google.golang.org/api/bigquery/v2"

internaltypes "github.com/goccy/bigquery-emulator/internal/types"
Expand Down
2 changes: 1 addition & 1 deletion internal/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package types

import (
"fmt"
"github.com/MatanLevy/go-zetasqlite"
"time"

"github.com/apache/arrow/go/v10/arrow/array"
"github.com/goccy/bigquery-emulator/types"
"github.com/goccy/go-zetasqlite"
bigqueryv2 "google.golang.org/api/bigquery/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"encoding/csv"
"errors"
"fmt"
"github.com/MatanLevy/go-zetasqlite"
"html"
"io"
"mime"
Expand All @@ -21,7 +22,6 @@ import (

"cloud.google.com/go/storage"
"github.com/goccy/go-json"
"github.com/goccy/go-zetasqlite"
"go.uber.org/zap"
bigqueryv2 "google.golang.org/api/bigquery/v2"
"google.golang.org/api/iterator"
Expand Down
7 changes: 3 additions & 4 deletions types/arrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ package types

import (
"fmt"
"strconv"
"time"

"github.com/MatanLevy/go-zetasqlite"
"github.com/apache/arrow/go/v10/arrow"
"github.com/apache/arrow/go/v10/arrow/array"
"github.com/goccy/go-zetasqlite"
bigqueryv2 "google.golang.org/api/bigquery/v2"
"strconv"
"time"
)

func TableToARROW(t *bigqueryv2.Table) (*arrow.Schema, error) {
Expand Down
2 changes: 1 addition & 1 deletion types/avro.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package types

import (
"fmt"
"github.com/MatanLevy/go-zetasqlite"
"math/big"
"strconv"
"time"

"github.com/goccy/go-json"
"github.com/goccy/go-zetasqlite"
bigqueryv2 "google.golang.org/api/bigquery/v2"
)

Expand Down

0 comments on commit 9f9eae6

Please sign in to comment.