mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
remove duplicate checks
This commit is contained in:
parent
67233d5720
commit
cdaec2e0d2
1 changed files with 0 additions and 6 deletions
6
api.go
6
api.go
|
|
@ -1769,9 +1769,6 @@ func (api *API) ImportValueWithTx(ctx context.Context, qcx *Qcx, req *ImportValu
|
|||
|
||||
// if we're importing into a specific shard
|
||||
if req.Shard != math.MaxUint64 {
|
||||
if len(req.ColumnIDs) == 0 {
|
||||
return errors.Wrap(err, "calculating shard, no columns in request")
|
||||
}
|
||||
// Check that column IDs match the stated shard.
|
||||
shard := req.ColumnIDs[0] / ShardWidth
|
||||
if s2 := req.ColumnIDs[len(req.ColumnIDs)-1] / ShardWidth; (shard != s2) || (shard != req.Shard) {
|
||||
|
|
@ -1810,9 +1807,6 @@ func (api *API) ImportValueWithTx(ctx context.Context, qcx *Qcx, req *ImportValu
|
|||
return errors.Wrap(err, "importing value")
|
||||
|
||||
} // end if req.Shard != math.MaxUint64
|
||||
if len(req.ColumnIDs) == 0 {
|
||||
return errors.Wrap(err, "calculating shard, no columns in request")
|
||||
}
|
||||
options.IgnoreKeyCheck = true
|
||||
start := 0
|
||||
shard := req.ColumnIDs[0] / ShardWidth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue