From 0d752d374454f2486e6e738548dc59ba468f1196 Mon Sep 17 00:00:00 2001 From: Ryo Kanbayashi Date: Fri, 6 Sep 2024 13:34:49 +0900 Subject: [PATCH] TestKeyDuplicateInsertDeleteWithBTreeIndexVarchar passed(50 based variable length. SERIAL EXEC, 800stride, 3000op). --- .../executors/executor_test/btree_index_executor_test.go | 4 ++-- lib/samehada/samehada_util/samehada_util.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/execution/executors/executor_test/btree_index_executor_test.go b/lib/execution/executors/executor_test/btree_index_executor_test.go index 143ee320..d42cef5c 100644 --- a/lib/execution/executors/executor_test/btree_index_executor_test.go +++ b/lib/execution/executors/executor_test/btree_index_executor_test.go @@ -138,8 +138,8 @@ func testBTreeParallelTxnStrideRoot[T int32 | float32 | string](t *testing.T, ke //InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 400, 1000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, SERIAL_EXEC, 1) //InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 800, 5000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, SERIAL_EXEC, 1) - InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 800, 3000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, SERIAL_EXEC, 1) - //InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 800, 3000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, PARALLEL_EXEC, 20) + //InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 800, 3000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, SERIAL_EXEC, 1) + InnerTestParallelTxnsQueryingIndexUsedColumns[T](t, keyType, 800, 3000, 17, 0, bpoolSize, index_constants.INDEX_KIND_BTREE, PARALLEL_EXEC, 20) default: panic("not implemented!") } diff --git a/lib/samehada/samehada_util/samehada_util.go b/lib/samehada/samehada_util/samehada_util.go index 21a05dce..3aa43e97 100644 --- a/lib/samehada/samehada_util/samehada_util.go +++ b/lib/samehada/samehada_util/samehada_util.go @@ -180,7 +180,7 @@ func GetRandomPrimitiveVal[T int32 | float32 | string](keyType types.TypeID, max // TODO: (SDB) FOR DEBUG: length is fixed //var ret interface{} = *GetRandomStr(50, false) //var ret interface{} = *GetRandomStr(50, true) - var ret interface{} = *GetRandomStr(50, true) + var ret interface{} = *GetRandomStr(50, false) return ret.(T) default: panic("not supported keyType")