Skip to content

Commit

Permalink
implementing varchar support of btree index: TestKeyDuplicateBTreePra…
Browse files Browse the repository at this point in the history
…llelTxnStrideVarchar passed (poolSize=5000, parallel=20, 1000op, WITHOUT RANGE SCAN).
  • Loading branch information
ryogrid committed Sep 2, 2024
1 parent f2cbb43 commit 31937b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ func InnerTestParallelTxnsQueryingIndexUsedColumns[T int32 | float32 | string](t
}
common.ShPrintf(common.DEBUGGING, "ii=%d\n", ii)

// get 0-7
opType := rand.Intn(8)
////get 0-6
//opType := rand.Intn(7)
//// get 0-7
//opType := rand.Intn(8)
//get 0-6
opType := rand.Intn(7)

switch opType {
case 0: // Update two account balance (move money)
Expand Down
3 changes: 2 additions & 1 deletion lib/samehada/samehada_util/samehada_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func GetRandomPrimitiveVal[T int32 | float32 | string](keyType types.TypeID, max
var ret interface{} = float32(val)
return ret.(T)
case types.Varchar:
var ret interface{} = *GetRandomStr(200)
//var ret interface{} = *GetRandomStr(200)
var ret interface{} = *GetRandomStr(50)
return ret.(T)
default:
panic("not supported keyType")
Expand Down

0 comments on commit 31937b5

Please sign in to comment.