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

update some library names for testing #5

Merged
merged 5 commits into from
Dec 13, 2023
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 catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

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

type (
Expand Down
3 changes: 2 additions & 1 deletion cmd/zetasqlite-cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ module github.com/goccy/go-zetasqlite/cmd/zetasqlite-cli
go 1.21

require (
github.com/MatanLevy/go-zetasqlite v0.17.10-0.20231213095134-9a693dd7e32d
github.com/chzyer/readline v1.5.1
github.com/fatih/color v1.15.0
github.com/goccy/go-zetasql v0.5.2
github.com/goccy/go-zetasqlite v0.4.0
github.com/goccy/go-zetasqlite v0.0.0-00010101000000-000000000000
github.com/jessevdk/go-flags v1.5.0
github.com/olekukonko/tablewriter v0.0.5
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
Expand Down
2 changes: 2 additions & 0 deletions cmd/zetasqlite-cli/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ github.com/DataDog/go-hll v1.0.2 h1:Mm1HCqDMp/a6g/8OpJLkORYaRMy1AL0Kep8lopOgJeY=
github.com/DataDog/go-hll v1.0.2/go.mod h1:nVlk+LiOuLOBG2pl+DJtGYBr6r6CUH/bGqebzrCUSKw=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c h1:RGWPOewvKIROun94nF7v2cua9qP+thov/7M50KEoeSU=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
github.com/MatanLevy/go-zetasqlite v0.17.10-0.20231213095134-9a693dd7e32d h1:oBpOIiu9eVBUeaRaivVbZh8FFhq1WCVEAH3hDXzw3nQ=
github.com/MatanLevy/go-zetasqlite v0.17.10-0.20231213095134-9a693dd7e32d/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/v11 v11.0.0 h1:hqauxvFQxww+0mEU/2XHG6LT7eZternCZq+A5Yly2uM=
Expand Down
2 changes: 1 addition & 1 deletion cmd/zetasqlite-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"reflect"
"strings"

"github.com/MatanLevy/go-zetasqlite"
"github.com/chzyer/readline"
"github.com/fatih/color"
"github.com/goccy/go-zetasql/types"
"github.com/goccy/go-zetasqlite"
"github.com/goccy/go-zetasqlite/internal"
"github.com/jessevdk/go-flags"
"github.com/olekukonko/tablewriter"
Expand Down
2 changes: 1 addition & 1 deletion column.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zetasqlite
import (
"github.com/goccy/go-json"

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

type ColumnType = internal.Type
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

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

// WithCurrentTime use to replace the current time with the specified time.
Expand Down
2 changes: 1 addition & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"sync"

internal "github.com/goccy/go-zetasqlite/internal"
internal "github.com/MatanLevy/go-zetasqlite/internal"
"github.com/mattn/go-sqlite3"
)

Expand Down
2 changes: 1 addition & 1 deletion driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"testing"

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

Expand Down
2 changes: 1 addition & 1 deletion exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

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

Expand Down
2 changes: 1 addition & 1 deletion internal/function_window_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (s *WindowFuncAggregatedStatus) Done(cb func([]Value, int, int) error) erro
copy(sortedValues, values)
if len(sortedValues) != 0 {
orderByObjects := sortedValues[0].OrderBy
if orderByObjects != nil && len(orderByObjects) != 0 {
if len(orderByObjects) != 0 {
sort.Slice(sortedValues, func(i, j int) bool {
for orderBy := 0; orderBy < len(orderByObjects); orderBy++ {
isAsc := orderByObjects[orderBy].IsAsc
Expand Down
2 changes: 1 addition & 1 deletion internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func lowerThanEquals(value1, value2 Value, isAscending bool) (bool, bool, error)
}

func sortValues(orderByList []*AggregateOrderBy, orderedValues []*OrderedValue) {
if orderByList == nil || len(orderByList) == 0 {
if len(orderByList) == 0 {
return
}

Expand Down
2 changes: 1 addition & 1 deletion query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

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

Expand Down
2 changes: 1 addition & 1 deletion timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"time"

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

// TimeFromTimestampValue zetasqlite returns string values ​​by default for timestamp values.
Expand Down