@@ -32,7 +32,7 @@ import org.apache.comet.CometConf
3232object CometStringExpressionBenchmark extends CometBenchmarkBase {
3333
3434 def subStringExprBenchmark (values : Int ): Unit = {
35- val benchmark = new Benchmark (" Substring Expr" , values, output = output)
35+ val benchmark = new Benchmark (" Substring Expr" , values.toLong , output = output)
3636
3737 withTempPath { dir =>
3838 withTempTable(" parquetV1Table" ) {
@@ -62,7 +62,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
6262 }
6363
6464 def stringSpaceExprBenchmark (values : Int ): Unit = {
65- val benchmark = new Benchmark (" StringSpace Expr" , values, output = output)
65+ val benchmark = new Benchmark (" StringSpace Expr" , values.toLong , output = output)
6666
6767 withTempPath { dir =>
6868 withTempTable(" parquetV1Table" ) {
@@ -92,7 +92,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
9292 }
9393
9494 def asciiExprBenchmark (values : Int ): Unit = {
95- val benchmark = new Benchmark (" Expr ascii" , values, output = output)
95+ val benchmark = new Benchmark (" Expr ascii" , values.toLong , output = output)
9696
9797 withTempPath { dir =>
9898 withTempTable(" parquetV1Table" ) {
@@ -122,7 +122,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
122122 }
123123
124124 def bitLengthExprBenchmark (values : Int ): Unit = {
125- val benchmark = new Benchmark (" Expr bit_length" , values, output = output)
125+ val benchmark = new Benchmark (" Expr bit_length" , values.toLong , output = output)
126126
127127 withTempPath { dir =>
128128 withTempTable(" parquetV1Table" ) {
@@ -152,7 +152,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
152152 }
153153
154154 def octetLengthExprBenchmark (values : Int ): Unit = {
155- val benchmark = new Benchmark (" Expr octet_length" , values, output = output)
155+ val benchmark = new Benchmark (" Expr octet_length" , values.toLong , output = output)
156156
157157 withTempPath { dir =>
158158 withTempTable(" parquetV1Table" ) {
@@ -182,7 +182,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
182182 }
183183
184184 def upperExprBenchmark (values : Int ): Unit = {
185- val benchmark = new Benchmark (" Expr upper" , values, output = output)
185+ val benchmark = new Benchmark (" Expr upper" , values.toLong , output = output)
186186
187187 withTempPath { dir =>
188188 withTempTable(" parquetV1Table" ) {
@@ -213,7 +213,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
213213 }
214214
215215 def lowerExprBenchmark (values : Int ): Unit = {
216- val benchmark = new Benchmark (" Expr lower" , values, output = output)
216+ val benchmark = new Benchmark (" Expr lower" , values.toLong , output = output)
217217
218218 withTempPath { dir =>
219219 withTempTable(" parquetV1Table" ) {
@@ -243,7 +243,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
243243 }
244244
245245 def chrExprBenchmark (values : Int ): Unit = {
246- val benchmark = new Benchmark (" Expr chr" , values, output = output)
246+ val benchmark = new Benchmark (" Expr chr" , values.toLong , output = output)
247247
248248 withTempPath { dir =>
249249 withTempTable(" parquetV1Table" ) {
@@ -273,7 +273,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
273273 }
274274
275275 def initCapExprBenchmark (values : Int ): Unit = {
276- val benchmark = new Benchmark (" Expr initCap" , values, output = output)
276+ val benchmark = new Benchmark (" Expr initCap" , values.toLong , output = output)
277277
278278 withTempPath { dir =>
279279 withTempTable(" parquetV1Table" ) {
@@ -303,7 +303,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
303303 }
304304
305305 def trimExprBenchmark (values : Int ): Unit = {
306- val benchmark = new Benchmark (" Expr trim" , values, output = output)
306+ val benchmark = new Benchmark (" Expr trim" , values.toLong , output = output)
307307
308308 withTempPath { dir =>
309309 withTempTable(" parquetV1Table" ) {
@@ -333,7 +333,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
333333 }
334334
335335 def concatwsExprBenchmark (values : Int ): Unit = {
336- val benchmark = new Benchmark (" Expr concatws" , values, output = output)
336+ val benchmark = new Benchmark (" Expr concatws" , values.toLong , output = output)
337337
338338 withTempPath { dir =>
339339 withTempTable(" parquetV1Table" ) {
@@ -363,7 +363,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
363363 }
364364
365365 def lengthExprBenchmark (values : Int ): Unit = {
366- val benchmark = new Benchmark (" Expr length" , values, output = output)
366+ val benchmark = new Benchmark (" Expr length" , values.toLong , output = output)
367367
368368 withTempPath { dir =>
369369 withTempTable(" parquetV1Table" ) {
@@ -393,7 +393,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
393393 }
394394
395395 def repeatExprBenchmark (values : Int ): Unit = {
396- val benchmark = new Benchmark (" Expr repeat" , values, output = output)
396+ val benchmark = new Benchmark (" Expr repeat" , values.toLong , output = output)
397397
398398 withTempPath { dir =>
399399 withTempTable(" parquetV1Table" ) {
@@ -423,7 +423,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
423423 }
424424
425425 def reverseExprBenchmark (values : Int ): Unit = {
426- val benchmark = new Benchmark (" Expr reverse" , values, output = output)
426+ val benchmark = new Benchmark (" Expr reverse" , values.toLong , output = output)
427427
428428 withTempPath { dir =>
429429 withTempTable(" parquetV1Table" ) {
@@ -483,7 +483,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
483483 }
484484
485485 def replaceExprBenchmark (values : Int ): Unit = {
486- val benchmark = new Benchmark (" Expr replace" , values, output = output)
486+ val benchmark = new Benchmark (" Expr replace" , values.toLong , output = output)
487487
488488 withTempPath { dir =>
489489 withTempTable(" parquetV1Table" ) {
@@ -513,7 +513,7 @@ object CometStringExpressionBenchmark extends CometBenchmarkBase {
513513 }
514514
515515 def translateExprBenchmark (values : Int ): Unit = {
516- val benchmark = new Benchmark (" Expr translate" , values, output = output)
516+ val benchmark = new Benchmark (" Expr translate" , values.toLong , output = output)
517517
518518 withTempPath { dir =>
519519 withTempTable(" parquetV1Table" ) {
0 commit comments