Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fixed some import issues resulting from syncing the private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fletcher Haynes committed Nov 17, 2022
1 parent e14cde7 commit 45e405b
Show file tree
Hide file tree
Showing 38 changed files with 238 additions and 84 deletions.
1 change: 0 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"time"

"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/rbf"

//"github.com/featurebasedb/featurebase/v3/pg"
Expand Down
10 changes: 5 additions & 5 deletions batch/batch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
// SPDX-License-Identifier: Apache-2.0
package client
// Package batch provides tooling to prepare batches of records for ingest.
package batch

import (
"bytes"
Expand All @@ -11,8 +10,9 @@ import (
"time"

featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/client/egpool"
"github.com/featurebasedb/featurebase/v3/batch/egpool"
"github.com/featurebasedb/featurebase/v3/logger"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/pkg/errors"
)
Expand Down Expand Up @@ -716,7 +716,7 @@ func (b *Batch) Add(rec Row) error {
return nil
}

// ErrBatchNowFull — similar to io.EOF — is a marker error to notify the user of
// ErrBatchNowFull — similar to io.EOF — is a marker error to notify the user of
// a batch that it is time to call Import.
var ErrBatchNowFull = errors.New("batch is now full - you cannot add any more records (though the one you just added was accepted)")

Expand Down
6 changes: 3 additions & 3 deletions batch/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

featurebase "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/client"
"github.com/molecula/featurebase/v3/pql"
featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/client"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/stretchr/testify/assert"

"github.com/pkg/errors"
Expand Down
4 changes: 2 additions & 2 deletions batch/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package batch
import (
"time"

featurebase "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/errors"
featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/errors"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion batch/egpool/egpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"errors"
"testing"

"github.com/featurebasedb/featurebase/v3/client/egpool"
"github.com/featurebasedb/featurebase/v3/batch/egpool"
)

func TestEGPool(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions batch/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"time"

"github.com/golang/protobuf/proto" //nolint:staticcheck
featurebase "github.com/molecula/featurebase/v3"
featurebaseproto "github.com/molecula/featurebase/v3/encoding/proto"
"github.com/molecula/featurebase/v3/pb"
"github.com/molecula/featurebase/v3/roaring"
featurebase "github.com/featurebasedb/featurebase/v3"
featurebaseproto "github.com/featurebasedb/featurebase/v3/encoding/proto"
"github.com/featurebasedb/featurebase/v3/pb"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion batch/metrics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
// SPDX-License-Identifier: Apache-2.0
package client
package batch

const (
// MetricBatchImportDurationSeconds records the full time of the
Expand Down
4 changes: 2 additions & 2 deletions client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package client
import (
"context"

featurebase "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/errors"
featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/errors"
)

var _ featurebase.SchemaAPI = &schemaAPI{}
Expand Down
4 changes: 2 additions & 2 deletions client/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

featurebase "github.com/molecula/featurebase/v3"
"github.com/molecula/featurebase/v3/roaring"
featurebase "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/pkg/errors"
)

Expand Down
1 change: 0 additions & 1 deletion cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"time"

"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/logger"
"github.com/featurebasedb/featurebase/v3/roaring"
"github.com/pkg/errors"
Expand Down
12 changes: 6 additions & 6 deletions cmd/badloader/badloader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Molecula Corp. All rights reserved.
package main

import (
Expand All @@ -8,16 +7,17 @@ import (
"context"
"fmt"
"io"
"os"
"strconv"
"strings"
"time"

gohttp "net/http"

pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/encoding/proto"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/vprint"

"os"
"strconv"
"strings"
)

func UploadTar(srcFile string, client *pilosa.InternalClient) error {
Expand Down
1 change: 0 additions & 1 deletion encoding/proto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/gogo/protobuf/proto"
pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/ingest"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/pb"
"github.com/featurebasedb/featurebase/v3/pql"
Expand Down
1 change: 0 additions & 1 deletion encoding/proto/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"testing"

pilosa "github.com/featurebasedb/featurebase/v3"
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/pb"
)

Expand Down
3 changes: 0 additions & 3 deletions fragment.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import (
"sync"
"time"

"github.com/cespare/xxhash"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/logger"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/pb"
"github.com/featurebasedb/featurebase/v3/pql"
"github.com/featurebasedb/featurebase/v3/roaring"
Expand Down
5 changes: 2 additions & 3 deletions handler.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Molecula Corp. All rights reserved.
package pilosa

import (
"encoding/json"
"math/bits"
"time"

"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/shardwidth"
"github.com/featurebasedb/featurebase/v3/tracing"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math/rand"
"testing"

pilosa "github.com/molecula/featurebase/v3"
pilosa "github.com/featurebasedb/featurebase/v3"
)

func TestSortToShards(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/authz"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/logger"
"github.com/featurebasedb/featurebase/v3/monitor"
"github.com/featurebasedb/featurebase/v3/pql"
Expand Down
1 change: 0 additions & 1 deletion internal_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

"github.com/featurebasedb/featurebase/v3/authn"
"github.com/featurebasedb/featurebase/v3/disco"
"github.com/featurebasedb/featurebase/v3/ingest"
"github.com/featurebasedb/featurebase/v3/logger"
pnet "github.com/featurebasedb/featurebase/v3/net"
"github.com/featurebasedb/featurebase/v3/tracing"
Expand Down
1 change: 0 additions & 1 deletion iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package pilosa
import (
"fmt"

"github.com/featurebasedb/featurebase/v3/roaring"
)

// iterator is an interface for looping over row/column pairs.
Expand Down
2 changes: 1 addition & 1 deletion querycontext/query_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strings"

"github.com/molecula/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/roaring"
)

// QueryContext represents the lifespan of a query or similar thing which
Expand Down
2 changes: 1 addition & 1 deletion querycontext/query_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

rbfcfg "github.com/molecula/featurebase/v3/rbf/cfg"
rbfcfg "github.com/featurebasedb/featurebase/v3/rbf/cfg"
"golang.org/x/sync/errgroup"
)

Expand Down
6 changes: 3 additions & 3 deletions querycontext/rbf.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"runtime"
"sync"

"github.com/molecula/featurebase/v3/rbf"
rbfcfg "github.com/molecula/featurebase/v3/rbf/cfg"
"github.com/molecula/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/rbf"
rbfcfg "github.com/featurebasedb/featurebase/v3/rbf/cfg"
"github.com/featurebasedb/featurebase/v3/roaring"
)

// rbfDBQueryContexts represents an actual backend DB, and a map of the
Expand Down
2 changes: 1 addition & 1 deletion querycontext/rbf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/molecula/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/roaring"
)

func TestRbfWrite(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion querycontext/reduce_err_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync/atomic"
"testing"

"github.com/molecula/featurebase/v3/roaring"
"github.com/featurebasedb/featurebase/v3/roaring"
)

type oopsieWrapper struct {
Expand Down
1 change: 0 additions & 1 deletion rbf.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
txkey "github.com/featurebasedb/featurebase/v3/short_txkey"
"github.com/featurebasedb/featurebase/v3/storage"

"github.com/featurebasedb/featurebase/v3/vprint"
"github.com/pkg/errors"
)

Expand Down
Loading

0 comments on commit 45e405b

Please sign in to comment.