@@ -36,8 +36,8 @@ import (
36
36
kitsync "github.com/rudderlabs/rudder-go-kit/sync"
37
37
"github.com/rudderlabs/rudder-go-kit/testhelper/docker/resource/minio"
38
38
"github.com/rudderlabs/rudder-go-kit/testhelper/docker/resource/postgres"
39
+
39
40
"github.com/rudderlabs/rudder-server/jobsdb"
40
- "github.com/rudderlabs/rudder-server/utils/misc"
41
41
warehouseutils "github.com/rudderlabs/rudder-server/warehouse/utils"
42
42
)
43
43
@@ -84,9 +84,9 @@ func TestWorkerWriter(t *testing.T) {
84
84
buf := bytes .NewBuffer (make ([]byte , 0 , 1024 ))
85
85
86
86
w := worker {}
87
- w .config .parquetRowGroupSize = misc .SingleValueLoader (512 * bytesize .MB )
88
- w .config .parquetPageSize = misc .SingleValueLoader (8 * bytesize .KB )
89
- w .config .parquetParallelWriters = misc .SingleValueLoader (int64 (8 ))
87
+ w .config .parquetRowGroupSize = config .SingleValueLoader (512 * bytesize .MB )
88
+ w .config .parquetPageSize = config .SingleValueLoader (8 * bytesize .KB )
89
+ w .config .parquetParallelWriters = config .SingleValueLoader (int64 (8 ))
90
90
91
91
require .NoError (t , w .encodeToParquet (buf , toEncode ))
92
92
@@ -125,9 +125,9 @@ func TestWorkerWriter(t *testing.T) {
125
125
require .NoError (t , err )
126
126
127
127
w := worker {}
128
- w .config .parquetRowGroupSize = misc .SingleValueLoader (512 * bytesize .MB )
129
- w .config .parquetPageSize = misc .SingleValueLoader (8 * bytesize .KB )
130
- w .config .parquetParallelWriters = misc .SingleValueLoader (int64 (8 ))
128
+ w .config .parquetRowGroupSize = config .SingleValueLoader (512 * bytesize .MB )
129
+ w .config .parquetPageSize = config .SingleValueLoader (8 * bytesize .KB )
130
+ w .config .parquetParallelWriters = config .SingleValueLoader (int64 (8 ))
131
131
132
132
require .NoError (t , w .encodeToParquet (fw , toEncode ))
133
133
@@ -713,9 +713,9 @@ func BenchmarkFileFormat(b *testing.B) {
713
713
}
714
714
715
715
w := worker {}
716
- w .config .parquetRowGroupSize = misc .SingleValueLoader (512 * bytesize .MB )
717
- w .config .parquetPageSize = misc .SingleValueLoader (8 * bytesize .KB )
718
- w .config .parquetParallelWriters = misc .SingleValueLoader (int64 (8 ))
716
+ w .config .parquetRowGroupSize = config .SingleValueLoader (512 * bytesize .MB )
717
+ w .config .parquetPageSize = config .SingleValueLoader (8 * bytesize .KB )
718
+ w .config .parquetParallelWriters = config .SingleValueLoader (int64 (8 ))
719
719
720
720
buf := bytes .NewBuffer (make ([]byte , 0 , 1024 ))
721
721
0 commit comments