cleaned up sync from private repo

This commit is contained in:
Seebs 2022-09-02 10:57:06 -05:00 committed by Kasey Rodgers
parent f6d17b1b58
commit e47bdb7889
82 changed files with 231 additions and 249 deletions

12
api.go
View file

@ -26,12 +26,12 @@ import (
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/rbf"
//"github.com/molecula/featurebase/v3/pg"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/roaring"
planner_types "github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/molecula/featurebase/v3/stats"
"github.com/molecula/featurebase/v3/tracing"
//"github.com/featurebasedb/featurebase/v3/pg"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/roaring"
planner_types "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/stats"
"github.com/featurebasedb/featurebase/v3/tracing"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -22,14 +22,14 @@ import (
"testing"
"time"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/server"
"github.com/featurebasedb/featurebase/v3/shardwidth"
"github.com/featurebasedb/featurebase/v3/test"
. "github.com/featurebasedb/featurebase/v3/vprint" // nolint:staticcheck
"github.com/golang-jwt/jwt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/shardwidth"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
"golang.org/x/sync/errgroup"
)

View file

@ -10,9 +10,9 @@ import (
"testing/quick"
"time"
"github.com/molecula/featurebase/v3/disco"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/disco"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/roaring"
)
// Ensure the cluster can fairly distribute partitions across the nodes.

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v3/ctl"
"github.com/featurebasedb/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v3/ctl"
"github.com/featurebasedb/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -10,7 +10,7 @@ import (
"os"
"strings"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
func main() {

View file

@ -5,7 +5,7 @@ import (
"context"
"io"
"github.com/molecula/featurebase/v3/ctl"
"github.com/featurebasedb/featurebase/v3/ctl"
"github.com/spf13/cobra"
)

View file

@ -13,11 +13,11 @@ import (
"path"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/encoding/proto"
"github.com/molecula/featurebase/v3/server"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/encoding/proto"
"github.com/featurebasedb/featurebase/v3/server"
"github.com/pkg/errors"
)

View file

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v3/test"
"github.com/featurebasedb/featurebase/v3/test"
)
func TestBackupTarCommand_Run(t *testing.T) {

View file

@ -10,9 +10,9 @@ import (
"strings"
"github.com/chzyer/readline"
featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/jedib0t/go-pretty/table"
"github.com/jedib0t/go-pretty/text"
featurebase "github.com/molecula/featurebase/v3"
"github.com/pkg/errors"
)

View file

@ -302,7 +302,7 @@ func TestImportCommand_KeyReplication(t *testing.T) {
// Read body and unmarshal response.
exp := `{"results":[50]}` + "\n"
if body, err := ioutil.ReadAll(resp.Body); err != nil {
if body, err := io.ReadAll(resp.Body); err != nil {
return fmt.Errorf("reading: %s", err)
} else if !reflect.DeepEqual(body, []byte(exp)) {
return fmt.Errorf("expected: %s, but got: %s", exp, body)

View file

@ -16,10 +16,10 @@ import (
"strings"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/server"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/server"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v3/test"
"github.com/featurebasedb/featurebase/v3/test"
)
func TestRestoreTarCommand_Run(t *testing.T) {

View file

@ -7,9 +7,9 @@ import (
"fmt"
"testing"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/test"
. "github.com/featurebasedb/featurebase/v3/vprint" // nolint:staticcheck
)
func TestAPI_SimplerOneNode_ImportColumnKey(t *testing.T) {

View file

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/molecula/featurebase/v3/errors"
"github.com/featurebasedb/featurebase/v3/errors"
"github.com/stretchr/testify/assert"
)

View file

@ -11,6 +11,7 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"math"
"math/rand"
_ "net/http/pprof"
@ -24,7 +25,6 @@ import (
"github.com/davecgh/go-spew/spew"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/boltdb"
"github.com/featurebasedb/featurebase/v3/ctl"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/pql"
@ -33,16 +33,8 @@ import (
"github.com/featurebasedb/featurebase/v3/test"
"github.com/featurebasedb/featurebase/v3/testhook"
. "github.com/featurebasedb/featurebase/v3/vprint" // nolint:staticcheck
. "github.com/featurebasedb/featurebase/v3/vprint" // nolint:staticcheck
"github.com/google/go-cmp/cmp"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/ctl"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/proto"
"github.com/molecula/featurebase/v3/server"
"github.com/molecula/featurebase/v3/test"
"github.com/molecula/featurebase/v3/testhook"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
"github.com/pkg/errors"
)

View file

@ -36,22 +36,12 @@ import (
"github.com/featurebasedb/featurebase/v3/monitor"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/rbf"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/storage"
"github.com/featurebasedb/featurebase/v3/tracing"
"github.com/felixge/fgprof"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/authz"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/ingest"
"github.com/molecula/featurebase/v3/logger"
"github.com/molecula/featurebase/v3/monitor"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/rbf"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/molecula/featurebase/v3/storage"
"github.com/molecula/featurebase/v3/tracing"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus/promhttp"
dto "github.com/prometheus/client_model/go"

View file

@ -15,13 +15,13 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/encoding/proto"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/test"
"github.com/molecula/featurebase/v3/vprint"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/encoding/proto"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/test"
"github.com/featurebasedb/featurebase/v3/vprint"
"github.com/pkg/errors"
"github.com/ricochet2200/go-disk-usage/du"
)

View file

@ -17,16 +17,16 @@ import (
uuid "github.com/satori/go.uuid"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/logger"
pnet "github.com/molecula/featurebase/v3/net"
rbfcfg "github.com/molecula/featurebase/v3/rbf/cfg"
"github.com/molecula/featurebase/v3/roaring"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
planner_types "github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/molecula/featurebase/v3/stats"
"github.com/molecula/featurebase/v3/storage"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/logger"
pnet "github.com/featurebasedb/featurebase/v3/net"
rbfcfg "github.com/featurebasedb/featurebase/v3/rbf/cfg"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
planner_types "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/stats"
"github.com/featurebasedb/featurebase/v3/storage"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"

View file

@ -28,24 +28,24 @@ import (
"golang.org/x/sync/errgroup"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/authn"
"github.com/molecula/featurebase/v3/authz"
"github.com/molecula/featurebase/v3/boltdb"
"github.com/molecula/featurebase/v3/encoding/proto"
petcd "github.com/molecula/featurebase/v3/etcd"
"github.com/molecula/featurebase/v3/gcnotify"
"github.com/molecula/featurebase/v3/gopsutil"
"github.com/molecula/featurebase/v3/logger"
pnet "github.com/molecula/featurebase/v3/net"
"github.com/molecula/featurebase/v3/prometheus"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner"
"github.com/molecula/featurebase/v3/statik"
"github.com/molecula/featurebase/v3/stats"
"github.com/molecula/featurebase/v3/statsd"
"github.com/molecula/featurebase/v3/syswrap"
"github.com/molecula/featurebase/v3/testhook"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/authz"
"github.com/featurebasedb/featurebase/v3/boltdb"
"github.com/featurebasedb/featurebase/v3/encoding/proto"
petcd "github.com/featurebasedb/featurebase/v3/etcd"
"github.com/featurebasedb/featurebase/v3/gcnotify"
"github.com/featurebasedb/featurebase/v3/gopsutil"
"github.com/featurebasedb/featurebase/v3/logger"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/prometheus"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner"
"github.com/featurebasedb/featurebase/v3/statik"
"github.com/featurebasedb/featurebase/v3/stats"
"github.com/featurebasedb/featurebase/v3/statsd"
"github.com/featurebasedb/featurebase/v3/syswrap"
"github.com/featurebasedb/featurebase/v3/testhook"
"github.com/pelletier/go-toml"
"github.com/pkg/errors"
)

View file

@ -7,9 +7,9 @@ import (
"math"
"testing"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql"
"github.com/molecula/featurebase/v3/test"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql"
"github.com/featurebasedb/featurebase/v3/test"
"vitess.io/vitess/go/vt/sqlparser"
)

View file

@ -4,8 +4,8 @@ import (
"fmt"
"runtime"
"github.com/molecula/featurebase/v3/errors"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/errors"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
const (

View file

@ -4,8 +4,8 @@ package sql3
import (
"context"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
type CompilePlanner interface {

View file

@ -6,8 +6,8 @@ import (
"strings"
"testing"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/go-test/deep"
"github.com/molecula/featurebase/v3/sql3/parser"
)
func TestExprString(t *testing.T) {

View file

@ -5,7 +5,7 @@ import (
"math"
"strings"
"github.com/molecula/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/pql"
)
const (

View file

@ -5,8 +5,8 @@ import (
"strings"
"testing"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/go-test/deep"
"github.com/molecula/featurebase/v3/sql3/parser"
)
func TestParser_ParseNonNullColumnConstraints(t *testing.T) {

View file

@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
func TestScanner_Scan(t *testing.T) {

View file

@ -4,7 +4,7 @@ package parser_test
import (
"testing"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
func TestPos_String(t *testing.T) {

View file

@ -5,9 +5,9 @@ package planner
import (
"strings"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
type alterOperation int64

View file

@ -5,10 +5,10 @@ package planner
import (
"context"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -7,11 +7,11 @@ import (
"strings"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
type createTableField struct {

View file

@ -5,10 +5,10 @@ package planner
import (
"context"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -6,10 +6,10 @@ import (
"context"
"strings"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -5,10 +5,10 @@ package planner
import (
"context"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -5,10 +5,10 @@ package planner
import (
"context"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -7,10 +7,10 @@ import (
"encoding/json"
"log"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlannerScope holds scope for the planner

View file

@ -8,13 +8,13 @@ import (
"testing"
"time"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
planner_types "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
sql_test "github.com/featurebasedb/featurebase/v3/sql3/test"
"github.com/featurebasedb/featurebase/v3/test"
"github.com/google/go-cmp/cmp"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3/parser"
planner_types "github.com/molecula/featurebase/v3/sql3/planner/types"
sql_test "github.com/molecula/featurebase/v3/sql3/test"
"github.com/molecula/featurebase/v3/test"
"github.com/stretchr/testify/assert"
)

View file

@ -11,10 +11,10 @@ import (
"strings"
"time"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// coerceValue coerces a value from a source type to a target type. If the types do not allow a conversion

View file

@ -7,9 +7,9 @@ import (
"fmt"
"reflect"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// aggregator for the COUNT function

View file

@ -3,8 +3,8 @@
package planner
import (
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
// analyze a parser.Expr. returns the analyzed parser.Expr

View file

@ -5,8 +5,8 @@ package planner
import (
"strings"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
// analyze a *parser.Call and return the parser.Expr

View file

@ -7,10 +7,10 @@ import (
"strconv"
"strings"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// generatePQLCallFromExpr returns a *pql.Call tree for a given plan expression

View file

@ -6,9 +6,9 @@ import (
"strconv"
"strings"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
// takes a *pilosa.FieldInfo and returns a sql data type

View file

@ -4,8 +4,8 @@ import (
"strings"
"time"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
const intervalYear = "YY"

View file

@ -3,8 +3,8 @@ package planner
import (
"strings"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
func (n *callPlanExpression) EvaluateSetContains(currentRow []interface{}) (interface{}, error) {

View file

@ -2,7 +2,7 @@
package planner
import "github.com/molecula/featurebase/v3/sql3/planner/types"
import "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
// RowCache is a cache of rows used during row iteration
type RowCache interface {

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpAlterTable plan operator to alter a table.

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpBulkInsert plan operator to handle INSERT.

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -5,7 +5,7 @@ package planner
import (
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpDistinct plan operator handles DISTINCT

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpDropTable plan operator to drop a table.

View file

@ -7,9 +7,9 @@ import (
"fmt"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpFeatureBaseColumns wraps an Index that is returned from schemaAPI.Schema().

View file

@ -7,9 +7,9 @@ import (
"fmt"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpFeatureBaseTables wraps a []*IndexInfo that is returned from

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpGroupBy handles the GROUP BY clause

View file

@ -8,11 +8,11 @@ import (
"strings"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpInsert plan operator to handle INSERT.

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpNestedLoops plan operator handles a join

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpNullTable is an operator for a null table

View file

@ -8,9 +8,9 @@ import (
"sort"
"time"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// orderByOrder is the direction of the order by (ascending or descending).

View file

@ -6,11 +6,11 @@ import (
"context"
"fmt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpPQLAggregate plan operator handles a single pql aggregate

View file

@ -6,11 +6,11 @@ import (
"context"
"fmt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpPQLGroupBy plan operator handles a PQL group by with a single aggregate

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpPQLMultiAggregate plan operator handles executing multiple 'sibling' pql aggregate queries

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpPQLMultiGroupBy plan operator handles executing multiple 'sibling' pql group by queries

View file

@ -6,8 +6,8 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpProjection handles row projection and expression evaluation

View file

@ -4,8 +4,8 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpQuery is a query - this is the root node of an execution plan

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpSubquery is an operator for a subquery

View file

@ -6,11 +6,11 @@ import (
"context"
"fmt"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
"github.com/pkg/errors"
)

View file

@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanOpTop implements the TOP operator

View file

@ -8,8 +8,8 @@ import (
"reflect"
"strings"
"github.com/molecula/featurebase/v3/sql3"
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
//TODO(pok) push order by down as far as possible

View file

@ -1,7 +1,7 @@
package planner
import (
"github.com/molecula/featurebase/v3/sql3/planner/types"
"github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// PlanVisitor visits nodes in the plan.

View file

@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
// PlanOperator is a node in an execution plan.

View file

@ -3,7 +3,7 @@ package types
import (
"context"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
//TODO(pok) we can get rid of this - we have expression types for all of these now...

View file

@ -4,7 +4,7 @@ package sql3_test
import (
"time"
"github.com/molecula/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/pql"
)
// tableTests is the list of tests which get run by TestSQL_Execute in

View file

@ -1,8 +1,8 @@
package sql3_test
import (
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
//aggregate function tests

View file

@ -3,7 +3,7 @@ package sql3_test
import (
"time"
"github.com/molecula/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/pql"
)
func expectedCastTime() time.Time {

View file

@ -1,8 +1,8 @@
package sql3_test
import (
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/sql3/parser"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
)
//groupby tests

View file

@ -9,11 +9,11 @@ import (
"testing"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/sql3/parser"
planner_types "github.com/molecula/featurebase/v3/sql3/planner/types"
sql_test "github.com/molecula/featurebase/v3/sql3/test"
"github.com/molecula/featurebase/v3/test"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/sql3/parser"
planner_types "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
sql_test "github.com/featurebasedb/featurebase/v3/sql3/test"
"github.com/featurebasedb/featurebase/v3/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -5,8 +5,8 @@ import (
"context"
"testing"
pilosa "github.com/molecula/featurebase/v3"
planner_types "github.com/molecula/featurebase/v3/sql3/planner/types"
pilosa "github.com/featurebasedb/featurebase/v3"
planner_types "github.com/featurebasedb/featurebase/v3/sql3/planner/types"
)
// MustQueryRows returns the row results as a slice of []interface{}, along with the columns.

View file

@ -8,7 +8,7 @@ import (
"sync"
"testing"
"github.com/molecula/featurebase/v3/testhook"
"github.com/featurebasedb/featurebase/v3/testhook"
)
// glue lets us make a thing which isn't a testing.TB, but can be passed

View file

@ -7,9 +7,9 @@ import (
"testing"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/pql"
"github.com/molecula/featurebase/v3/testhook"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/testhook"
)
// Holder is a test wrapper for pilosa.Holder.

View file

@ -14,10 +14,10 @@ import (
"testing"
"time"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/encoding/proto"
"github.com/molecula/featurebase/v3/server"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/encoding/proto"
"github.com/featurebasedb/featurebase/v3/server"
)
// //////////////////////////////////////////////////////////////////////////////////

View file

@ -11,11 +11,11 @@ import (
"testing"
"time"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/mock"
"github.com/featurebasedb/featurebase/v3/test"
"github.com/google/go-cmp/cmp"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/disco"
"github.com/molecula/featurebase/v3/mock"
"github.com/molecula/featurebase/v3/test"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -7,9 +7,9 @@ import (
"fmt"
"testing"
pilosa "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/test"
. "github.com/molecula/featurebase/v3/vprint" // nolint:staticcheck
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/test"
. "github.com/featurebasedb/featurebase/v3/vprint" // nolint:staticcheck
)
func queryIRABit(m0api *pilosa.API, acctOwnerID uint64, iraField string, iraRowID uint64, index string) (bit bool) {