github.com/whtcorpsinc/milevadb-prod@v0.0.0-20211104133533-f57f4be3b597/dbs/memristed/memex/builtin_time_vec_generated_test.go (about) 1 // Copyright 2020 WHTCORPS INC, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // See the License for the specific language governing permissions and 12 // limitations under the License. 13 14 // Code generated by go generate in memex/generator; DO NOT EDIT. 15 16 package memex 17 18 import ( 19 "math" 20 "testing" 21 22 . "github.com/whtcorpsinc/check" 23 "github.com/whtcorpsinc/BerolinaSQL/ast" 24 "github.com/whtcorpsinc/BerolinaSQL/allegrosql" 25 "github.com/whtcorpsinc/milevadb/types" 26 ) 27 28 type gener struct { 29 defaultGener 30 } 31 32 func (g gener) gen() interface{} { 33 result := g.defaultGener.gen() 34 if _, ok := result.(string); ok { 35 dg := newDefaultGener(0, types.ETDuration) 36 d := dg.gen().(types.Duration) 37 if int8(d.Duration)%2 == 0 { 38 d.Fsp = 0 39 } else { 40 d.Fsp = 1 41 } 42 result = d.String() 43 } 44 return result 45 } 46 47 var vecBuiltinTimeGeneratedCases = map[string][]vecExprBenchCase{ 48 ast.AddTime: { 49 // builtinAddDatetimeAndDurationSig 50 { 51 retEvalType: types.ETDatetime, 52 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDuration}, 53 geners: []dataGenerator{ 54 gener{*newDefaultGener(0.2, types.ETDatetime)}, 55 gener{*newDefaultGener(0.2, types.ETDuration)}, 56 }, 57 }, 58 // builtinAddDatetimeAndStringSig 59 { 60 retEvalType: types.ETDatetime, 61 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString}, 62 geners: []dataGenerator{ 63 gener{*newDefaultGener(0.2, types.ETDatetime)}, 64 gener{*newDefaultGener(0.2, types.ETString)}, 65 }, 66 }, 67 // builtinAddDurationAndDurationSig 68 { 69 retEvalType: types.ETDuration, 70 childrenTypes: []types.EvalType{types.ETDuration, types.ETDuration}, 71 geners: []dataGenerator{ 72 gener{*newDefaultGener(0.2, types.ETDuration)}, 73 gener{*newDefaultGener(0.2, types.ETDuration)}, 74 }, 75 }, 76 // builtinAddDurationAndStringSig 77 { 78 retEvalType: types.ETDuration, 79 childrenTypes: []types.EvalType{types.ETDuration, types.ETString}, 80 geners: []dataGenerator{ 81 gener{*newDefaultGener(0.2, types.ETDuration)}, 82 gener{*newDefaultGener(0.2, types.ETString)}, 83 }, 84 }, 85 // builtinAddStringAndDurationSig 86 { 87 retEvalType: types.ETString, 88 childrenTypes: []types.EvalType{types.ETString, types.ETDuration}, 89 geners: []dataGenerator{ 90 gener{*newDefaultGener(0.2, types.ETString)}, 91 gener{*newDefaultGener(0.2, types.ETDuration)}, 92 }, 93 }, 94 // builtinAddStringAndStringSig 95 { 96 retEvalType: types.ETString, 97 childrenTypes: []types.EvalType{types.ETString, types.ETString}, 98 geners: []dataGenerator{ 99 gener{*newDefaultGener(0.2, types.ETString)}, 100 gener{*newDefaultGener(0.2, types.ETString)}, 101 }, 102 }, 103 // builtinAddDateAndDurationSig 104 { 105 retEvalType: types.ETString, 106 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDuration}, 107 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeDuration)}, 108 geners: []dataGenerator{ 109 gener{*newDefaultGener(0.2, types.ETDatetime)}, 110 gener{*newDefaultGener(0.2, types.ETDuration)}, 111 }, 112 }, 113 // builtinAddDateAndStringSig 114 { 115 retEvalType: types.ETString, 116 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString}, 117 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeString)}, 118 geners: []dataGenerator{ 119 gener{*newDefaultGener(0.2, types.ETDatetime)}, 120 gener{*newDefaultGener(0.2, types.ETString)}, 121 }, 122 }, 123 // builtinAddTimeDateTimeNullSig 124 { 125 retEvalType: types.ETDatetime, 126 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDatetime}, 127 geners: []dataGenerator{ 128 gener{*newDefaultGener(0.2, types.ETDatetime)}, 129 gener{*newDefaultGener(0.2, types.ETDatetime)}, 130 }, 131 }, 132 // builtinAddTimeStringNullSig 133 { 134 retEvalType: types.ETString, 135 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDatetime}, 136 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeDatetime)}, 137 geners: []dataGenerator{ 138 gener{*newDefaultGener(0.2, types.ETDatetime)}, 139 gener{*newDefaultGener(0.2, types.ETDatetime)}, 140 }, 141 }, 142 // builtinAddTimeDurationNullSig 143 { 144 retEvalType: types.ETDuration, 145 childrenTypes: []types.EvalType{types.ETDuration, types.ETDatetime}, 146 geners: []dataGenerator{ 147 gener{*newDefaultGener(0.2, types.ETDuration)}, 148 gener{*newDefaultGener(0.2, types.ETDatetime)}, 149 }, 150 }, 151 }, 152 153 ast.SubTime: { 154 // builtinSubDatetimeAndDurationSig 155 { 156 retEvalType: types.ETDatetime, 157 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDuration}, 158 geners: []dataGenerator{ 159 gener{*newDefaultGener(0.2, types.ETDatetime)}, 160 gener{*newDefaultGener(0.2, types.ETDuration)}, 161 }, 162 }, 163 // builtinSubDatetimeAndStringSig 164 { 165 retEvalType: types.ETDatetime, 166 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString}, 167 geners: []dataGenerator{ 168 gener{*newDefaultGener(0.2, types.ETDatetime)}, 169 gener{*newDefaultGener(0.2, types.ETString)}, 170 }, 171 }, 172 // builtinSubDurationAndDurationSig 173 { 174 retEvalType: types.ETDuration, 175 childrenTypes: []types.EvalType{types.ETDuration, types.ETDuration}, 176 geners: []dataGenerator{ 177 gener{*newDefaultGener(0.2, types.ETDuration)}, 178 gener{*newDefaultGener(0.2, types.ETDuration)}, 179 }, 180 }, 181 // builtinSubDurationAndStringSig 182 { 183 retEvalType: types.ETDuration, 184 childrenTypes: []types.EvalType{types.ETDuration, types.ETString}, 185 geners: []dataGenerator{ 186 gener{*newDefaultGener(0.2, types.ETDuration)}, 187 gener{*newDefaultGener(0.2, types.ETString)}, 188 }, 189 }, 190 // builtinSubStringAndDurationSig 191 { 192 retEvalType: types.ETString, 193 childrenTypes: []types.EvalType{types.ETString, types.ETDuration}, 194 geners: []dataGenerator{ 195 gener{*newDefaultGener(0.2, types.ETString)}, 196 gener{*newDefaultGener(0.2, types.ETDuration)}, 197 }, 198 }, 199 // builtinSubStringAndStringSig 200 { 201 retEvalType: types.ETString, 202 childrenTypes: []types.EvalType{types.ETString, types.ETString}, 203 geners: []dataGenerator{ 204 gener{*newDefaultGener(0.2, types.ETString)}, 205 gener{*newDefaultGener(0.2, types.ETString)}, 206 }, 207 }, 208 // builtinSubDateAndDurationSig 209 { 210 retEvalType: types.ETString, 211 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDuration}, 212 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeDuration)}, 213 geners: []dataGenerator{ 214 gener{*newDefaultGener(0.2, types.ETDatetime)}, 215 gener{*newDefaultGener(0.2, types.ETDuration)}, 216 }, 217 }, 218 // builtinSubDateAndStringSig 219 { 220 retEvalType: types.ETString, 221 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString}, 222 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeString)}, 223 geners: []dataGenerator{ 224 gener{*newDefaultGener(0.2, types.ETDatetime)}, 225 gener{*newDefaultGener(0.2, types.ETString)}, 226 }, 227 }, 228 // builtinSubTimeDateTimeNullSig 229 { 230 retEvalType: types.ETDatetime, 231 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDatetime}, 232 geners: []dataGenerator{ 233 gener{*newDefaultGener(0.2, types.ETDatetime)}, 234 gener{*newDefaultGener(0.2, types.ETDatetime)}, 235 }, 236 }, 237 // builtinSubTimeStringNullSig 238 { 239 retEvalType: types.ETString, 240 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDatetime}, 241 childrenFieldTypes: []*types.FieldType{types.NewFieldType(allegrosql.TypeDate), types.NewFieldType(allegrosql.TypeDatetime)}, 242 geners: []dataGenerator{ 243 gener{*newDefaultGener(0.2, types.ETDatetime)}, 244 gener{*newDefaultGener(0.2, types.ETDatetime)}, 245 }, 246 }, 247 // builtinSubTimeDurationNullSig 248 { 249 retEvalType: types.ETDuration, 250 childrenTypes: []types.EvalType{types.ETDuration, types.ETDatetime}, 251 geners: []dataGenerator{ 252 gener{*newDefaultGener(0.2, types.ETDuration)}, 253 gener{*newDefaultGener(0.2, types.ETDatetime)}, 254 }, 255 }, 256 }, 257 258 ast.TimeDiff: { 259 // builtinNullTimeDiffSig 260 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETDatetime}}, 261 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETTimestamp}}, 262 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDatetime, types.ETDuration}}, 263 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETTimestamp, types.ETDuration}}, 264 // builtinDurationDurationTimeDiffSig 265 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETDuration}}, 266 // builtinDurationStringTimeDiffSig 267 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETString}, geners: []dataGenerator{nil, &dateTimeStrGener{Year: 2020, Month: 11, randGen: newDefaultRandGen()}}}, 268 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETString}, geners: []dataGenerator{nil, &dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 269 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration, types.ETString}, geners: []dataGenerator{nil, &dateTimeStrGener{Year: 2020, Month: 10, Fsp: 4, randGen: newDefaultRandGen()}}}, 270 // builtinTimeTimeTimeDiffSig 271 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDatetime, types.ETDatetime}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 272 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDatetime, types.ETTimestamp}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 273 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETTimestamp, types.ETTimestamp}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 274 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETTimestamp, types.ETDatetime}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 275 // builtinTimeStringTimeDiffSig 276 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDatetime, types.ETString}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 277 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETTimestamp, types.ETString}, geners: []dataGenerator{&dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 278 // builtinStringDurationTimeDiffSig 279 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETString, types.ETDuration}, geners: []dataGenerator{&dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, nil}}, 280 // builtinStringTimeTimeDiffSig 281 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETString, types.ETDatetime}, geners: []dataGenerator{&dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 282 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETString, types.ETTimestamp}, geners: []dataGenerator{&dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 283 // builtinStringStringTimeDiffSig 284 {retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETString, types.ETString}, geners: []dataGenerator{&dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}, &dateTimeStrGener{Year: 2020, Month: 10, randGen: newDefaultRandGen()}}}, 285 }, 286 287 ast.AddDate: { 288 // builtinAddDateStringStringSig 289 { 290 retEvalType: types.ETDatetime, 291 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 292 geners: []dataGenerator{ 293 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 294 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 295 }, 296 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 297 chunkSize: 128, 298 }, 299 { 300 retEvalType: types.ETDatetime, 301 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 302 geners: []dataGenerator{ 303 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 304 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 305 }, 306 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 307 chunkSize: 128, 308 }, 309 { 310 retEvalType: types.ETDatetime, 311 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 312 geners: []dataGenerator{ 313 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 314 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 315 }, 316 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 317 chunkSize: 128, 318 }, 319 { 320 retEvalType: types.ETDatetime, 321 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 322 geners: []dataGenerator{ 323 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 324 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 325 }, 326 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 327 chunkSize: 128, 328 }, 329 { 330 retEvalType: types.ETDatetime, 331 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 332 geners: []dataGenerator{ 333 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 334 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 335 }, 336 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 337 chunkSize: 128, 338 }, 339 { 340 retEvalType: types.ETDatetime, 341 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 342 geners: []dataGenerator{ 343 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 344 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 345 }, 346 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 347 chunkSize: 128, 348 }, 349 { 350 retEvalType: types.ETDatetime, 351 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 352 geners: []dataGenerator{ 353 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 354 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 355 }, 356 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 357 chunkSize: 128, 358 }, 359 { 360 retEvalType: types.ETDatetime, 361 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 362 geners: []dataGenerator{ 363 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 364 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 365 }, 366 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 367 chunkSize: 128, 368 }, 369 { 370 retEvalType: types.ETDatetime, 371 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 372 geners: []dataGenerator{ 373 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 374 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 375 }, 376 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 377 chunkSize: 128, 378 }, 379 { 380 retEvalType: types.ETDatetime, 381 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 382 geners: []dataGenerator{ 383 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 384 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 385 }, 386 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 387 chunkSize: 128, 388 }, 389 { 390 retEvalType: types.ETDatetime, 391 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 392 geners: []dataGenerator{ 393 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 394 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 395 }, 396 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 397 chunkSize: 128, 398 }, 399 { 400 retEvalType: types.ETDatetime, 401 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 402 geners: []dataGenerator{ 403 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 404 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 405 }, 406 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 407 chunkSize: 128, 408 }, 409 { 410 retEvalType: types.ETDatetime, 411 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 412 geners: []dataGenerator{ 413 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 414 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 415 }, 416 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 417 chunkSize: 128, 418 }, 419 { 420 retEvalType: types.ETDatetime, 421 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 422 geners: []dataGenerator{ 423 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 424 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 425 }, 426 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 427 chunkSize: 128, 428 }, 429 { 430 retEvalType: types.ETDatetime, 431 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 432 geners: []dataGenerator{ 433 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 434 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 435 }, 436 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 437 chunkSize: 128, 438 }, 439 { 440 retEvalType: types.ETDatetime, 441 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 442 geners: []dataGenerator{ 443 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 444 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 445 }, 446 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 447 chunkSize: 128, 448 }, 449 { 450 retEvalType: types.ETDatetime, 451 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 452 geners: []dataGenerator{ 453 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 454 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 455 }, 456 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 457 chunkSize: 128, 458 }, 459 { 460 retEvalType: types.ETDatetime, 461 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 462 geners: []dataGenerator{ 463 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 464 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 465 }, 466 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 467 chunkSize: 128, 468 }, 469 { 470 retEvalType: types.ETDatetime, 471 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 472 geners: []dataGenerator{ 473 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 474 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 475 }, 476 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 477 chunkSize: 128, 478 }, 479 { 480 retEvalType: types.ETDatetime, 481 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 482 geners: []dataGenerator{ 483 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 484 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 485 }, 486 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 487 chunkSize: 128, 488 }, 489 // builtinAddDateStringIntSig 490 { 491 retEvalType: types.ETDatetime, 492 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 493 geners: []dataGenerator{ 494 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 495 newDefaultGener(0.2, types.ETInt), 496 }, 497 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 498 chunkSize: 128, 499 }, 500 { 501 retEvalType: types.ETDatetime, 502 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 503 geners: []dataGenerator{ 504 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 505 newDefaultGener(0.2, types.ETInt), 506 }, 507 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 508 chunkSize: 128, 509 }, 510 { 511 retEvalType: types.ETDatetime, 512 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 513 geners: []dataGenerator{ 514 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 515 newDefaultGener(0.2, types.ETInt), 516 }, 517 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 518 chunkSize: 128, 519 }, 520 { 521 retEvalType: types.ETDatetime, 522 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 523 geners: []dataGenerator{ 524 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 525 newDefaultGener(0.2, types.ETInt), 526 }, 527 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 528 chunkSize: 128, 529 }, 530 { 531 retEvalType: types.ETDatetime, 532 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 533 geners: []dataGenerator{ 534 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 535 newDefaultGener(0.2, types.ETInt), 536 }, 537 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 538 chunkSize: 128, 539 }, 540 { 541 retEvalType: types.ETDatetime, 542 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 543 geners: []dataGenerator{ 544 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 545 newDefaultGener(0.2, types.ETInt), 546 }, 547 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 548 chunkSize: 128, 549 }, 550 { 551 retEvalType: types.ETDatetime, 552 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 553 geners: []dataGenerator{ 554 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 555 newDefaultGener(0.2, types.ETInt), 556 }, 557 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 558 chunkSize: 128, 559 }, 560 { 561 retEvalType: types.ETDatetime, 562 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 563 geners: []dataGenerator{ 564 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 565 newDefaultGener(0.2, types.ETInt), 566 }, 567 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 568 chunkSize: 128, 569 }, 570 { 571 retEvalType: types.ETDatetime, 572 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 573 geners: []dataGenerator{ 574 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 575 newDefaultGener(0.2, types.ETInt), 576 }, 577 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 578 chunkSize: 128, 579 }, 580 { 581 retEvalType: types.ETDatetime, 582 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 583 geners: []dataGenerator{ 584 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 585 newDefaultGener(0.2, types.ETInt), 586 }, 587 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 588 chunkSize: 128, 589 }, 590 { 591 retEvalType: types.ETDatetime, 592 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 593 geners: []dataGenerator{ 594 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 595 newDefaultGener(0.2, types.ETInt), 596 }, 597 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 598 chunkSize: 128, 599 }, 600 { 601 retEvalType: types.ETDatetime, 602 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 603 geners: []dataGenerator{ 604 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 605 newDefaultGener(0.2, types.ETInt), 606 }, 607 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 608 chunkSize: 128, 609 }, 610 { 611 retEvalType: types.ETDatetime, 612 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 613 geners: []dataGenerator{ 614 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 615 newDefaultGener(0.2, types.ETInt), 616 }, 617 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 618 chunkSize: 128, 619 }, 620 { 621 retEvalType: types.ETDatetime, 622 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 623 geners: []dataGenerator{ 624 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 625 newDefaultGener(0.2, types.ETInt), 626 }, 627 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 628 chunkSize: 128, 629 }, 630 { 631 retEvalType: types.ETDatetime, 632 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 633 geners: []dataGenerator{ 634 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 635 newDefaultGener(0.2, types.ETInt), 636 }, 637 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 638 chunkSize: 128, 639 }, 640 { 641 retEvalType: types.ETDatetime, 642 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 643 geners: []dataGenerator{ 644 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 645 newDefaultGener(0.2, types.ETInt), 646 }, 647 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 648 chunkSize: 128, 649 }, 650 { 651 retEvalType: types.ETDatetime, 652 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 653 geners: []dataGenerator{ 654 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 655 newDefaultGener(0.2, types.ETInt), 656 }, 657 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 658 chunkSize: 128, 659 }, 660 { 661 retEvalType: types.ETDatetime, 662 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 663 geners: []dataGenerator{ 664 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 665 newDefaultGener(0.2, types.ETInt), 666 }, 667 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 668 chunkSize: 128, 669 }, 670 { 671 retEvalType: types.ETDatetime, 672 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 673 geners: []dataGenerator{ 674 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 675 newDefaultGener(0.2, types.ETInt), 676 }, 677 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 678 chunkSize: 128, 679 }, 680 { 681 retEvalType: types.ETDatetime, 682 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 683 geners: []dataGenerator{ 684 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 685 newDefaultGener(0.2, types.ETInt), 686 }, 687 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 688 chunkSize: 128, 689 }, 690 // builtinAddDateStringRealSig 691 { 692 retEvalType: types.ETDatetime, 693 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 694 geners: []dataGenerator{ 695 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 696 newDefaultGener(0.2, types.ETReal), 697 }, 698 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 699 chunkSize: 128, 700 }, 701 { 702 retEvalType: types.ETDatetime, 703 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 704 geners: []dataGenerator{ 705 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 706 newDefaultGener(0.2, types.ETReal), 707 }, 708 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 709 chunkSize: 128, 710 }, 711 { 712 retEvalType: types.ETDatetime, 713 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 714 geners: []dataGenerator{ 715 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 716 newDefaultGener(0.2, types.ETReal), 717 }, 718 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 719 chunkSize: 128, 720 }, 721 { 722 retEvalType: types.ETDatetime, 723 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 724 geners: []dataGenerator{ 725 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 726 newDefaultGener(0.2, types.ETReal), 727 }, 728 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 729 chunkSize: 128, 730 }, 731 { 732 retEvalType: types.ETDatetime, 733 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 734 geners: []dataGenerator{ 735 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 736 newDefaultGener(0.2, types.ETReal), 737 }, 738 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 739 chunkSize: 128, 740 }, 741 { 742 retEvalType: types.ETDatetime, 743 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 744 geners: []dataGenerator{ 745 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 746 newDefaultGener(0.2, types.ETReal), 747 }, 748 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 749 chunkSize: 128, 750 }, 751 { 752 retEvalType: types.ETDatetime, 753 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 754 geners: []dataGenerator{ 755 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 756 newDefaultGener(0.2, types.ETReal), 757 }, 758 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 759 chunkSize: 128, 760 }, 761 { 762 retEvalType: types.ETDatetime, 763 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 764 geners: []dataGenerator{ 765 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 766 newDefaultGener(0.2, types.ETReal), 767 }, 768 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 769 chunkSize: 128, 770 }, 771 { 772 retEvalType: types.ETDatetime, 773 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 774 geners: []dataGenerator{ 775 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 776 newDefaultGener(0.2, types.ETReal), 777 }, 778 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 779 chunkSize: 128, 780 }, 781 { 782 retEvalType: types.ETDatetime, 783 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 784 geners: []dataGenerator{ 785 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 786 newDefaultGener(0.2, types.ETReal), 787 }, 788 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 789 chunkSize: 128, 790 }, 791 { 792 retEvalType: types.ETDatetime, 793 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 794 geners: []dataGenerator{ 795 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 796 newDefaultGener(0.2, types.ETReal), 797 }, 798 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 799 chunkSize: 128, 800 }, 801 { 802 retEvalType: types.ETDatetime, 803 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 804 geners: []dataGenerator{ 805 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 806 newDefaultGener(0.2, types.ETReal), 807 }, 808 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 809 chunkSize: 128, 810 }, 811 { 812 retEvalType: types.ETDatetime, 813 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 814 geners: []dataGenerator{ 815 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 816 newDefaultGener(0.2, types.ETReal), 817 }, 818 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 819 chunkSize: 128, 820 }, 821 { 822 retEvalType: types.ETDatetime, 823 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 824 geners: []dataGenerator{ 825 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 826 newDefaultGener(0.2, types.ETReal), 827 }, 828 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 829 chunkSize: 128, 830 }, 831 { 832 retEvalType: types.ETDatetime, 833 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 834 geners: []dataGenerator{ 835 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 836 newDefaultGener(0.2, types.ETReal), 837 }, 838 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 839 chunkSize: 128, 840 }, 841 { 842 retEvalType: types.ETDatetime, 843 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 844 geners: []dataGenerator{ 845 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 846 newDefaultGener(0.2, types.ETReal), 847 }, 848 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 849 chunkSize: 128, 850 }, 851 { 852 retEvalType: types.ETDatetime, 853 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 854 geners: []dataGenerator{ 855 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 856 newDefaultGener(0.2, types.ETReal), 857 }, 858 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 859 chunkSize: 128, 860 }, 861 { 862 retEvalType: types.ETDatetime, 863 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 864 geners: []dataGenerator{ 865 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 866 newDefaultGener(0.2, types.ETReal), 867 }, 868 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 869 chunkSize: 128, 870 }, 871 { 872 retEvalType: types.ETDatetime, 873 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 874 geners: []dataGenerator{ 875 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 876 newDefaultGener(0.2, types.ETReal), 877 }, 878 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 879 chunkSize: 128, 880 }, 881 { 882 retEvalType: types.ETDatetime, 883 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 884 geners: []dataGenerator{ 885 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 886 newDefaultGener(0.2, types.ETReal), 887 }, 888 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 889 chunkSize: 128, 890 }, 891 // builtinAddDateStringDecimalSig 892 { 893 retEvalType: types.ETDatetime, 894 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 895 geners: []dataGenerator{ 896 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 897 newDefaultGener(0.2, types.ETDecimal), 898 }, 899 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 900 chunkSize: 128, 901 }, 902 { 903 retEvalType: types.ETDatetime, 904 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 905 geners: []dataGenerator{ 906 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 907 newDefaultGener(0.2, types.ETDecimal), 908 }, 909 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 910 chunkSize: 128, 911 }, 912 { 913 retEvalType: types.ETDatetime, 914 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 915 geners: []dataGenerator{ 916 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 917 newDefaultGener(0.2, types.ETDecimal), 918 }, 919 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 920 chunkSize: 128, 921 }, 922 { 923 retEvalType: types.ETDatetime, 924 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 925 geners: []dataGenerator{ 926 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 927 newDefaultGener(0.2, types.ETDecimal), 928 }, 929 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 930 chunkSize: 128, 931 }, 932 { 933 retEvalType: types.ETDatetime, 934 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 935 geners: []dataGenerator{ 936 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 937 newDefaultGener(0.2, types.ETDecimal), 938 }, 939 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 940 chunkSize: 128, 941 }, 942 { 943 retEvalType: types.ETDatetime, 944 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 945 geners: []dataGenerator{ 946 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 947 newDefaultGener(0.2, types.ETDecimal), 948 }, 949 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 950 chunkSize: 128, 951 }, 952 { 953 retEvalType: types.ETDatetime, 954 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 955 geners: []dataGenerator{ 956 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 957 newDefaultGener(0.2, types.ETDecimal), 958 }, 959 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 960 chunkSize: 128, 961 }, 962 { 963 retEvalType: types.ETDatetime, 964 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 965 geners: []dataGenerator{ 966 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 967 newDefaultGener(0.2, types.ETDecimal), 968 }, 969 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 970 chunkSize: 128, 971 }, 972 { 973 retEvalType: types.ETDatetime, 974 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 975 geners: []dataGenerator{ 976 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 977 newDefaultGener(0.2, types.ETDecimal), 978 }, 979 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 980 chunkSize: 128, 981 }, 982 { 983 retEvalType: types.ETDatetime, 984 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 985 geners: []dataGenerator{ 986 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 987 newDefaultGener(0.2, types.ETDecimal), 988 }, 989 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 990 chunkSize: 128, 991 }, 992 { 993 retEvalType: types.ETDatetime, 994 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 995 geners: []dataGenerator{ 996 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 997 newDefaultGener(0.2, types.ETDecimal), 998 }, 999 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1000 chunkSize: 128, 1001 }, 1002 { 1003 retEvalType: types.ETDatetime, 1004 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1005 geners: []dataGenerator{ 1006 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1007 newDefaultGener(0.2, types.ETDecimal), 1008 }, 1009 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1010 chunkSize: 128, 1011 }, 1012 { 1013 retEvalType: types.ETDatetime, 1014 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1015 geners: []dataGenerator{ 1016 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1017 newDefaultGener(0.2, types.ETDecimal), 1018 }, 1019 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1020 chunkSize: 128, 1021 }, 1022 { 1023 retEvalType: types.ETDatetime, 1024 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1025 geners: []dataGenerator{ 1026 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1027 newDefaultGener(0.2, types.ETDecimal), 1028 }, 1029 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1030 chunkSize: 128, 1031 }, 1032 { 1033 retEvalType: types.ETDatetime, 1034 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1035 geners: []dataGenerator{ 1036 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1037 newDefaultGener(0.2, types.ETDecimal), 1038 }, 1039 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1040 chunkSize: 128, 1041 }, 1042 { 1043 retEvalType: types.ETDatetime, 1044 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1045 geners: []dataGenerator{ 1046 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1047 newDefaultGener(0.2, types.ETDecimal), 1048 }, 1049 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1050 chunkSize: 128, 1051 }, 1052 { 1053 retEvalType: types.ETDatetime, 1054 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1055 geners: []dataGenerator{ 1056 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1057 newDefaultGener(0.2, types.ETDecimal), 1058 }, 1059 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1060 chunkSize: 128, 1061 }, 1062 { 1063 retEvalType: types.ETDatetime, 1064 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1065 geners: []dataGenerator{ 1066 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1067 newDefaultGener(0.2, types.ETDecimal), 1068 }, 1069 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1070 chunkSize: 128, 1071 }, 1072 { 1073 retEvalType: types.ETDatetime, 1074 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1075 geners: []dataGenerator{ 1076 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1077 newDefaultGener(0.2, types.ETDecimal), 1078 }, 1079 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1080 chunkSize: 128, 1081 }, 1082 { 1083 retEvalType: types.ETDatetime, 1084 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 1085 geners: []dataGenerator{ 1086 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 1087 newDefaultGener(0.2, types.ETDecimal), 1088 }, 1089 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1090 chunkSize: 128, 1091 }, 1092 // builtinAddDateIntStringSig 1093 { 1094 retEvalType: types.ETDatetime, 1095 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1096 geners: []dataGenerator{ 1097 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1098 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1099 }, 1100 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1101 chunkSize: 128, 1102 }, 1103 { 1104 retEvalType: types.ETDatetime, 1105 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1106 geners: []dataGenerator{ 1107 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1108 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1109 }, 1110 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1111 chunkSize: 128, 1112 }, 1113 { 1114 retEvalType: types.ETDatetime, 1115 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1116 geners: []dataGenerator{ 1117 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1118 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1119 }, 1120 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1121 chunkSize: 128, 1122 }, 1123 { 1124 retEvalType: types.ETDatetime, 1125 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1126 geners: []dataGenerator{ 1127 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1128 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1129 }, 1130 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1131 chunkSize: 128, 1132 }, 1133 { 1134 retEvalType: types.ETDatetime, 1135 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1136 geners: []dataGenerator{ 1137 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1138 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1139 }, 1140 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1141 chunkSize: 128, 1142 }, 1143 { 1144 retEvalType: types.ETDatetime, 1145 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1146 geners: []dataGenerator{ 1147 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1148 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1149 }, 1150 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1151 chunkSize: 128, 1152 }, 1153 { 1154 retEvalType: types.ETDatetime, 1155 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1156 geners: []dataGenerator{ 1157 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1158 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1159 }, 1160 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1161 chunkSize: 128, 1162 }, 1163 { 1164 retEvalType: types.ETDatetime, 1165 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1166 geners: []dataGenerator{ 1167 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1168 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1169 }, 1170 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1171 chunkSize: 128, 1172 }, 1173 { 1174 retEvalType: types.ETDatetime, 1175 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1176 geners: []dataGenerator{ 1177 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1178 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1179 }, 1180 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1181 chunkSize: 128, 1182 }, 1183 { 1184 retEvalType: types.ETDatetime, 1185 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1186 geners: []dataGenerator{ 1187 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1188 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1189 }, 1190 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1191 chunkSize: 128, 1192 }, 1193 { 1194 retEvalType: types.ETDatetime, 1195 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1196 geners: []dataGenerator{ 1197 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1198 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1199 }, 1200 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1201 chunkSize: 128, 1202 }, 1203 { 1204 retEvalType: types.ETDatetime, 1205 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1206 geners: []dataGenerator{ 1207 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1208 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1209 }, 1210 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1211 chunkSize: 128, 1212 }, 1213 { 1214 retEvalType: types.ETDatetime, 1215 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1216 geners: []dataGenerator{ 1217 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1218 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1219 }, 1220 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1221 chunkSize: 128, 1222 }, 1223 { 1224 retEvalType: types.ETDatetime, 1225 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1226 geners: []dataGenerator{ 1227 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1228 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1229 }, 1230 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1231 chunkSize: 128, 1232 }, 1233 { 1234 retEvalType: types.ETDatetime, 1235 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1236 geners: []dataGenerator{ 1237 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1238 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1239 }, 1240 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1241 chunkSize: 128, 1242 }, 1243 { 1244 retEvalType: types.ETDatetime, 1245 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1246 geners: []dataGenerator{ 1247 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1248 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1249 }, 1250 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1251 chunkSize: 128, 1252 }, 1253 { 1254 retEvalType: types.ETDatetime, 1255 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1256 geners: []dataGenerator{ 1257 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1258 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1259 }, 1260 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1261 chunkSize: 128, 1262 }, 1263 { 1264 retEvalType: types.ETDatetime, 1265 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1266 geners: []dataGenerator{ 1267 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1268 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1269 }, 1270 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1271 chunkSize: 128, 1272 }, 1273 { 1274 retEvalType: types.ETDatetime, 1275 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1276 geners: []dataGenerator{ 1277 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1278 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1279 }, 1280 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1281 chunkSize: 128, 1282 }, 1283 { 1284 retEvalType: types.ETDatetime, 1285 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 1286 geners: []dataGenerator{ 1287 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1288 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1289 }, 1290 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1291 chunkSize: 128, 1292 }, 1293 // builtinAddDateIntIntSig 1294 { 1295 retEvalType: types.ETDatetime, 1296 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1297 geners: []dataGenerator{ 1298 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1299 newDefaultGener(0.2, types.ETInt), 1300 }, 1301 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1302 chunkSize: 128, 1303 }, 1304 { 1305 retEvalType: types.ETDatetime, 1306 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1307 geners: []dataGenerator{ 1308 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1309 newDefaultGener(0.2, types.ETInt), 1310 }, 1311 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1312 chunkSize: 128, 1313 }, 1314 { 1315 retEvalType: types.ETDatetime, 1316 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1317 geners: []dataGenerator{ 1318 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1319 newDefaultGener(0.2, types.ETInt), 1320 }, 1321 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1322 chunkSize: 128, 1323 }, 1324 { 1325 retEvalType: types.ETDatetime, 1326 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1327 geners: []dataGenerator{ 1328 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1329 newDefaultGener(0.2, types.ETInt), 1330 }, 1331 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1332 chunkSize: 128, 1333 }, 1334 { 1335 retEvalType: types.ETDatetime, 1336 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1337 geners: []dataGenerator{ 1338 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1339 newDefaultGener(0.2, types.ETInt), 1340 }, 1341 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1342 chunkSize: 128, 1343 }, 1344 { 1345 retEvalType: types.ETDatetime, 1346 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1347 geners: []dataGenerator{ 1348 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1349 newDefaultGener(0.2, types.ETInt), 1350 }, 1351 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1352 chunkSize: 128, 1353 }, 1354 { 1355 retEvalType: types.ETDatetime, 1356 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1357 geners: []dataGenerator{ 1358 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1359 newDefaultGener(0.2, types.ETInt), 1360 }, 1361 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1362 chunkSize: 128, 1363 }, 1364 { 1365 retEvalType: types.ETDatetime, 1366 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1367 geners: []dataGenerator{ 1368 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1369 newDefaultGener(0.2, types.ETInt), 1370 }, 1371 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1372 chunkSize: 128, 1373 }, 1374 { 1375 retEvalType: types.ETDatetime, 1376 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1377 geners: []dataGenerator{ 1378 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1379 newDefaultGener(0.2, types.ETInt), 1380 }, 1381 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1382 chunkSize: 128, 1383 }, 1384 { 1385 retEvalType: types.ETDatetime, 1386 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1387 geners: []dataGenerator{ 1388 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1389 newDefaultGener(0.2, types.ETInt), 1390 }, 1391 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1392 chunkSize: 128, 1393 }, 1394 { 1395 retEvalType: types.ETDatetime, 1396 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1397 geners: []dataGenerator{ 1398 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1399 newDefaultGener(0.2, types.ETInt), 1400 }, 1401 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1402 chunkSize: 128, 1403 }, 1404 { 1405 retEvalType: types.ETDatetime, 1406 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1407 geners: []dataGenerator{ 1408 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1409 newDefaultGener(0.2, types.ETInt), 1410 }, 1411 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1412 chunkSize: 128, 1413 }, 1414 { 1415 retEvalType: types.ETDatetime, 1416 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1417 geners: []dataGenerator{ 1418 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1419 newDefaultGener(0.2, types.ETInt), 1420 }, 1421 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1422 chunkSize: 128, 1423 }, 1424 { 1425 retEvalType: types.ETDatetime, 1426 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1427 geners: []dataGenerator{ 1428 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1429 newDefaultGener(0.2, types.ETInt), 1430 }, 1431 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1432 chunkSize: 128, 1433 }, 1434 { 1435 retEvalType: types.ETDatetime, 1436 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1437 geners: []dataGenerator{ 1438 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1439 newDefaultGener(0.2, types.ETInt), 1440 }, 1441 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1442 chunkSize: 128, 1443 }, 1444 { 1445 retEvalType: types.ETDatetime, 1446 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1447 geners: []dataGenerator{ 1448 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1449 newDefaultGener(0.2, types.ETInt), 1450 }, 1451 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1452 chunkSize: 128, 1453 }, 1454 { 1455 retEvalType: types.ETDatetime, 1456 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1457 geners: []dataGenerator{ 1458 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1459 newDefaultGener(0.2, types.ETInt), 1460 }, 1461 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1462 chunkSize: 128, 1463 }, 1464 { 1465 retEvalType: types.ETDatetime, 1466 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1467 geners: []dataGenerator{ 1468 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1469 newDefaultGener(0.2, types.ETInt), 1470 }, 1471 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1472 chunkSize: 128, 1473 }, 1474 { 1475 retEvalType: types.ETDatetime, 1476 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1477 geners: []dataGenerator{ 1478 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1479 newDefaultGener(0.2, types.ETInt), 1480 }, 1481 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1482 chunkSize: 128, 1483 }, 1484 { 1485 retEvalType: types.ETDatetime, 1486 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 1487 geners: []dataGenerator{ 1488 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1489 newDefaultGener(0.2, types.ETInt), 1490 }, 1491 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1492 chunkSize: 128, 1493 }, 1494 // builtinAddDateIntRealSig 1495 { 1496 retEvalType: types.ETDatetime, 1497 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1498 geners: []dataGenerator{ 1499 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1500 newDefaultGener(0.2, types.ETReal), 1501 }, 1502 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1503 chunkSize: 128, 1504 }, 1505 { 1506 retEvalType: types.ETDatetime, 1507 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1508 geners: []dataGenerator{ 1509 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1510 newDefaultGener(0.2, types.ETReal), 1511 }, 1512 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1513 chunkSize: 128, 1514 }, 1515 { 1516 retEvalType: types.ETDatetime, 1517 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1518 geners: []dataGenerator{ 1519 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1520 newDefaultGener(0.2, types.ETReal), 1521 }, 1522 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1523 chunkSize: 128, 1524 }, 1525 { 1526 retEvalType: types.ETDatetime, 1527 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1528 geners: []dataGenerator{ 1529 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1530 newDefaultGener(0.2, types.ETReal), 1531 }, 1532 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1533 chunkSize: 128, 1534 }, 1535 { 1536 retEvalType: types.ETDatetime, 1537 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1538 geners: []dataGenerator{ 1539 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1540 newDefaultGener(0.2, types.ETReal), 1541 }, 1542 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1543 chunkSize: 128, 1544 }, 1545 { 1546 retEvalType: types.ETDatetime, 1547 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1548 geners: []dataGenerator{ 1549 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1550 newDefaultGener(0.2, types.ETReal), 1551 }, 1552 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1553 chunkSize: 128, 1554 }, 1555 { 1556 retEvalType: types.ETDatetime, 1557 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1558 geners: []dataGenerator{ 1559 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1560 newDefaultGener(0.2, types.ETReal), 1561 }, 1562 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1563 chunkSize: 128, 1564 }, 1565 { 1566 retEvalType: types.ETDatetime, 1567 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1568 geners: []dataGenerator{ 1569 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1570 newDefaultGener(0.2, types.ETReal), 1571 }, 1572 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1573 chunkSize: 128, 1574 }, 1575 { 1576 retEvalType: types.ETDatetime, 1577 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1578 geners: []dataGenerator{ 1579 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1580 newDefaultGener(0.2, types.ETReal), 1581 }, 1582 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1583 chunkSize: 128, 1584 }, 1585 { 1586 retEvalType: types.ETDatetime, 1587 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1588 geners: []dataGenerator{ 1589 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1590 newDefaultGener(0.2, types.ETReal), 1591 }, 1592 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1593 chunkSize: 128, 1594 }, 1595 { 1596 retEvalType: types.ETDatetime, 1597 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1598 geners: []dataGenerator{ 1599 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1600 newDefaultGener(0.2, types.ETReal), 1601 }, 1602 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1603 chunkSize: 128, 1604 }, 1605 { 1606 retEvalType: types.ETDatetime, 1607 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1608 geners: []dataGenerator{ 1609 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1610 newDefaultGener(0.2, types.ETReal), 1611 }, 1612 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1613 chunkSize: 128, 1614 }, 1615 { 1616 retEvalType: types.ETDatetime, 1617 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1618 geners: []dataGenerator{ 1619 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1620 newDefaultGener(0.2, types.ETReal), 1621 }, 1622 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1623 chunkSize: 128, 1624 }, 1625 { 1626 retEvalType: types.ETDatetime, 1627 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1628 geners: []dataGenerator{ 1629 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1630 newDefaultGener(0.2, types.ETReal), 1631 }, 1632 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1633 chunkSize: 128, 1634 }, 1635 { 1636 retEvalType: types.ETDatetime, 1637 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1638 geners: []dataGenerator{ 1639 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1640 newDefaultGener(0.2, types.ETReal), 1641 }, 1642 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1643 chunkSize: 128, 1644 }, 1645 { 1646 retEvalType: types.ETDatetime, 1647 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1648 geners: []dataGenerator{ 1649 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1650 newDefaultGener(0.2, types.ETReal), 1651 }, 1652 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1653 chunkSize: 128, 1654 }, 1655 { 1656 retEvalType: types.ETDatetime, 1657 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1658 geners: []dataGenerator{ 1659 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1660 newDefaultGener(0.2, types.ETReal), 1661 }, 1662 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1663 chunkSize: 128, 1664 }, 1665 { 1666 retEvalType: types.ETDatetime, 1667 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1668 geners: []dataGenerator{ 1669 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1670 newDefaultGener(0.2, types.ETReal), 1671 }, 1672 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1673 chunkSize: 128, 1674 }, 1675 { 1676 retEvalType: types.ETDatetime, 1677 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1678 geners: []dataGenerator{ 1679 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1680 newDefaultGener(0.2, types.ETReal), 1681 }, 1682 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1683 chunkSize: 128, 1684 }, 1685 { 1686 retEvalType: types.ETDatetime, 1687 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 1688 geners: []dataGenerator{ 1689 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1690 newDefaultGener(0.2, types.ETReal), 1691 }, 1692 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1693 chunkSize: 128, 1694 }, 1695 // builtinAddDateIntDecimalSig 1696 { 1697 retEvalType: types.ETDatetime, 1698 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1699 geners: []dataGenerator{ 1700 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1701 newDefaultGener(0.2, types.ETDecimal), 1702 }, 1703 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1704 chunkSize: 128, 1705 }, 1706 { 1707 retEvalType: types.ETDatetime, 1708 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1709 geners: []dataGenerator{ 1710 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1711 newDefaultGener(0.2, types.ETDecimal), 1712 }, 1713 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1714 chunkSize: 128, 1715 }, 1716 { 1717 retEvalType: types.ETDatetime, 1718 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1719 geners: []dataGenerator{ 1720 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1721 newDefaultGener(0.2, types.ETDecimal), 1722 }, 1723 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1724 chunkSize: 128, 1725 }, 1726 { 1727 retEvalType: types.ETDatetime, 1728 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1729 geners: []dataGenerator{ 1730 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1731 newDefaultGener(0.2, types.ETDecimal), 1732 }, 1733 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1734 chunkSize: 128, 1735 }, 1736 { 1737 retEvalType: types.ETDatetime, 1738 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1739 geners: []dataGenerator{ 1740 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1741 newDefaultGener(0.2, types.ETDecimal), 1742 }, 1743 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1744 chunkSize: 128, 1745 }, 1746 { 1747 retEvalType: types.ETDatetime, 1748 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1749 geners: []dataGenerator{ 1750 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1751 newDefaultGener(0.2, types.ETDecimal), 1752 }, 1753 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1754 chunkSize: 128, 1755 }, 1756 { 1757 retEvalType: types.ETDatetime, 1758 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1759 geners: []dataGenerator{ 1760 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1761 newDefaultGener(0.2, types.ETDecimal), 1762 }, 1763 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1764 chunkSize: 128, 1765 }, 1766 { 1767 retEvalType: types.ETDatetime, 1768 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1769 geners: []dataGenerator{ 1770 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1771 newDefaultGener(0.2, types.ETDecimal), 1772 }, 1773 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1774 chunkSize: 128, 1775 }, 1776 { 1777 retEvalType: types.ETDatetime, 1778 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1779 geners: []dataGenerator{ 1780 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1781 newDefaultGener(0.2, types.ETDecimal), 1782 }, 1783 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1784 chunkSize: 128, 1785 }, 1786 { 1787 retEvalType: types.ETDatetime, 1788 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1789 geners: []dataGenerator{ 1790 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1791 newDefaultGener(0.2, types.ETDecimal), 1792 }, 1793 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1794 chunkSize: 128, 1795 }, 1796 { 1797 retEvalType: types.ETDatetime, 1798 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1799 geners: []dataGenerator{ 1800 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1801 newDefaultGener(0.2, types.ETDecimal), 1802 }, 1803 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1804 chunkSize: 128, 1805 }, 1806 { 1807 retEvalType: types.ETDatetime, 1808 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1809 geners: []dataGenerator{ 1810 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1811 newDefaultGener(0.2, types.ETDecimal), 1812 }, 1813 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1814 chunkSize: 128, 1815 }, 1816 { 1817 retEvalType: types.ETDatetime, 1818 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1819 geners: []dataGenerator{ 1820 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1821 newDefaultGener(0.2, types.ETDecimal), 1822 }, 1823 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1824 chunkSize: 128, 1825 }, 1826 { 1827 retEvalType: types.ETDatetime, 1828 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1829 geners: []dataGenerator{ 1830 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1831 newDefaultGener(0.2, types.ETDecimal), 1832 }, 1833 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1834 chunkSize: 128, 1835 }, 1836 { 1837 retEvalType: types.ETDatetime, 1838 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1839 geners: []dataGenerator{ 1840 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1841 newDefaultGener(0.2, types.ETDecimal), 1842 }, 1843 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1844 chunkSize: 128, 1845 }, 1846 { 1847 retEvalType: types.ETDatetime, 1848 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1849 geners: []dataGenerator{ 1850 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1851 newDefaultGener(0.2, types.ETDecimal), 1852 }, 1853 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1854 chunkSize: 128, 1855 }, 1856 { 1857 retEvalType: types.ETDatetime, 1858 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1859 geners: []dataGenerator{ 1860 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1861 newDefaultGener(0.2, types.ETDecimal), 1862 }, 1863 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1864 chunkSize: 128, 1865 }, 1866 { 1867 retEvalType: types.ETDatetime, 1868 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1869 geners: []dataGenerator{ 1870 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1871 newDefaultGener(0.2, types.ETDecimal), 1872 }, 1873 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1874 chunkSize: 128, 1875 }, 1876 { 1877 retEvalType: types.ETDatetime, 1878 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1879 geners: []dataGenerator{ 1880 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1881 newDefaultGener(0.2, types.ETDecimal), 1882 }, 1883 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1884 chunkSize: 128, 1885 }, 1886 { 1887 retEvalType: types.ETDatetime, 1888 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 1889 geners: []dataGenerator{ 1890 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 1891 newDefaultGener(0.2, types.ETDecimal), 1892 }, 1893 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1894 chunkSize: 128, 1895 }, 1896 // builtinAddDateDatetimeStringSig 1897 { 1898 retEvalType: types.ETDatetime, 1899 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1900 geners: []dataGenerator{ 1901 newDefaultGener(0.2, types.ETDatetime), 1902 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1903 }, 1904 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1905 chunkSize: 128, 1906 }, 1907 { 1908 retEvalType: types.ETDatetime, 1909 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1910 geners: []dataGenerator{ 1911 newDefaultGener(0.2, types.ETDatetime), 1912 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1913 }, 1914 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1915 chunkSize: 128, 1916 }, 1917 { 1918 retEvalType: types.ETDatetime, 1919 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1920 geners: []dataGenerator{ 1921 newDefaultGener(0.2, types.ETDatetime), 1922 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1923 }, 1924 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1925 chunkSize: 128, 1926 }, 1927 { 1928 retEvalType: types.ETDatetime, 1929 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1930 geners: []dataGenerator{ 1931 newDefaultGener(0.2, types.ETDatetime), 1932 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1933 }, 1934 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1935 chunkSize: 128, 1936 }, 1937 { 1938 retEvalType: types.ETDatetime, 1939 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1940 geners: []dataGenerator{ 1941 newDefaultGener(0.2, types.ETDatetime), 1942 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1943 }, 1944 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1945 chunkSize: 128, 1946 }, 1947 { 1948 retEvalType: types.ETDatetime, 1949 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1950 geners: []dataGenerator{ 1951 newDefaultGener(0.2, types.ETDatetime), 1952 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1953 }, 1954 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1955 chunkSize: 128, 1956 }, 1957 { 1958 retEvalType: types.ETDatetime, 1959 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1960 geners: []dataGenerator{ 1961 newDefaultGener(0.2, types.ETDatetime), 1962 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1963 }, 1964 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1965 chunkSize: 128, 1966 }, 1967 { 1968 retEvalType: types.ETDatetime, 1969 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1970 geners: []dataGenerator{ 1971 newDefaultGener(0.2, types.ETDatetime), 1972 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1973 }, 1974 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1975 chunkSize: 128, 1976 }, 1977 { 1978 retEvalType: types.ETDatetime, 1979 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1980 geners: []dataGenerator{ 1981 newDefaultGener(0.2, types.ETDatetime), 1982 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1983 }, 1984 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1985 chunkSize: 128, 1986 }, 1987 { 1988 retEvalType: types.ETDatetime, 1989 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 1990 geners: []dataGenerator{ 1991 newDefaultGener(0.2, types.ETDatetime), 1992 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 1993 }, 1994 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 1995 chunkSize: 128, 1996 }, 1997 { 1998 retEvalType: types.ETDatetime, 1999 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2000 geners: []dataGenerator{ 2001 newDefaultGener(0.2, types.ETDatetime), 2002 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2003 }, 2004 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2005 chunkSize: 128, 2006 }, 2007 { 2008 retEvalType: types.ETDatetime, 2009 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2010 geners: []dataGenerator{ 2011 newDefaultGener(0.2, types.ETDatetime), 2012 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2013 }, 2014 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2015 chunkSize: 128, 2016 }, 2017 { 2018 retEvalType: types.ETDatetime, 2019 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2020 geners: []dataGenerator{ 2021 newDefaultGener(0.2, types.ETDatetime), 2022 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2023 }, 2024 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2025 chunkSize: 128, 2026 }, 2027 { 2028 retEvalType: types.ETDatetime, 2029 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2030 geners: []dataGenerator{ 2031 newDefaultGener(0.2, types.ETDatetime), 2032 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2033 }, 2034 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2035 chunkSize: 128, 2036 }, 2037 { 2038 retEvalType: types.ETDatetime, 2039 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2040 geners: []dataGenerator{ 2041 newDefaultGener(0.2, types.ETDatetime), 2042 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2043 }, 2044 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2045 chunkSize: 128, 2046 }, 2047 { 2048 retEvalType: types.ETDatetime, 2049 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2050 geners: []dataGenerator{ 2051 newDefaultGener(0.2, types.ETDatetime), 2052 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2053 }, 2054 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2055 chunkSize: 128, 2056 }, 2057 { 2058 retEvalType: types.ETDatetime, 2059 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2060 geners: []dataGenerator{ 2061 newDefaultGener(0.2, types.ETDatetime), 2062 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2063 }, 2064 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2065 chunkSize: 128, 2066 }, 2067 { 2068 retEvalType: types.ETDatetime, 2069 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2070 geners: []dataGenerator{ 2071 newDefaultGener(0.2, types.ETDatetime), 2072 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2073 }, 2074 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2075 chunkSize: 128, 2076 }, 2077 { 2078 retEvalType: types.ETDatetime, 2079 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2080 geners: []dataGenerator{ 2081 newDefaultGener(0.2, types.ETDatetime), 2082 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2083 }, 2084 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2085 chunkSize: 128, 2086 }, 2087 { 2088 retEvalType: types.ETDatetime, 2089 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 2090 geners: []dataGenerator{ 2091 newDefaultGener(0.2, types.ETDatetime), 2092 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2093 }, 2094 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2095 chunkSize: 128, 2096 }, 2097 // builtinAddDateDatetimeIntSig 2098 { 2099 retEvalType: types.ETDatetime, 2100 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2101 geners: []dataGenerator{ 2102 newDefaultGener(0.2, types.ETDatetime), 2103 newDefaultGener(0.2, types.ETInt), 2104 }, 2105 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2106 chunkSize: 128, 2107 }, 2108 { 2109 retEvalType: types.ETDatetime, 2110 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2111 geners: []dataGenerator{ 2112 newDefaultGener(0.2, types.ETDatetime), 2113 newDefaultGener(0.2, types.ETInt), 2114 }, 2115 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2116 chunkSize: 128, 2117 }, 2118 { 2119 retEvalType: types.ETDatetime, 2120 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2121 geners: []dataGenerator{ 2122 newDefaultGener(0.2, types.ETDatetime), 2123 newDefaultGener(0.2, types.ETInt), 2124 }, 2125 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2126 chunkSize: 128, 2127 }, 2128 { 2129 retEvalType: types.ETDatetime, 2130 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2131 geners: []dataGenerator{ 2132 newDefaultGener(0.2, types.ETDatetime), 2133 newDefaultGener(0.2, types.ETInt), 2134 }, 2135 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2136 chunkSize: 128, 2137 }, 2138 { 2139 retEvalType: types.ETDatetime, 2140 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2141 geners: []dataGenerator{ 2142 newDefaultGener(0.2, types.ETDatetime), 2143 newDefaultGener(0.2, types.ETInt), 2144 }, 2145 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2146 chunkSize: 128, 2147 }, 2148 { 2149 retEvalType: types.ETDatetime, 2150 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2151 geners: []dataGenerator{ 2152 newDefaultGener(0.2, types.ETDatetime), 2153 newDefaultGener(0.2, types.ETInt), 2154 }, 2155 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2156 chunkSize: 128, 2157 }, 2158 { 2159 retEvalType: types.ETDatetime, 2160 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2161 geners: []dataGenerator{ 2162 newDefaultGener(0.2, types.ETDatetime), 2163 newDefaultGener(0.2, types.ETInt), 2164 }, 2165 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2166 chunkSize: 128, 2167 }, 2168 { 2169 retEvalType: types.ETDatetime, 2170 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2171 geners: []dataGenerator{ 2172 newDefaultGener(0.2, types.ETDatetime), 2173 newDefaultGener(0.2, types.ETInt), 2174 }, 2175 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2176 chunkSize: 128, 2177 }, 2178 { 2179 retEvalType: types.ETDatetime, 2180 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2181 geners: []dataGenerator{ 2182 newDefaultGener(0.2, types.ETDatetime), 2183 newDefaultGener(0.2, types.ETInt), 2184 }, 2185 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2186 chunkSize: 128, 2187 }, 2188 { 2189 retEvalType: types.ETDatetime, 2190 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2191 geners: []dataGenerator{ 2192 newDefaultGener(0.2, types.ETDatetime), 2193 newDefaultGener(0.2, types.ETInt), 2194 }, 2195 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2196 chunkSize: 128, 2197 }, 2198 { 2199 retEvalType: types.ETDatetime, 2200 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2201 geners: []dataGenerator{ 2202 newDefaultGener(0.2, types.ETDatetime), 2203 newDefaultGener(0.2, types.ETInt), 2204 }, 2205 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2206 chunkSize: 128, 2207 }, 2208 { 2209 retEvalType: types.ETDatetime, 2210 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2211 geners: []dataGenerator{ 2212 newDefaultGener(0.2, types.ETDatetime), 2213 newDefaultGener(0.2, types.ETInt), 2214 }, 2215 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2216 chunkSize: 128, 2217 }, 2218 { 2219 retEvalType: types.ETDatetime, 2220 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2221 geners: []dataGenerator{ 2222 newDefaultGener(0.2, types.ETDatetime), 2223 newDefaultGener(0.2, types.ETInt), 2224 }, 2225 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2226 chunkSize: 128, 2227 }, 2228 { 2229 retEvalType: types.ETDatetime, 2230 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2231 geners: []dataGenerator{ 2232 newDefaultGener(0.2, types.ETDatetime), 2233 newDefaultGener(0.2, types.ETInt), 2234 }, 2235 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2236 chunkSize: 128, 2237 }, 2238 { 2239 retEvalType: types.ETDatetime, 2240 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2241 geners: []dataGenerator{ 2242 newDefaultGener(0.2, types.ETDatetime), 2243 newDefaultGener(0.2, types.ETInt), 2244 }, 2245 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2246 chunkSize: 128, 2247 }, 2248 { 2249 retEvalType: types.ETDatetime, 2250 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2251 geners: []dataGenerator{ 2252 newDefaultGener(0.2, types.ETDatetime), 2253 newDefaultGener(0.2, types.ETInt), 2254 }, 2255 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2256 chunkSize: 128, 2257 }, 2258 { 2259 retEvalType: types.ETDatetime, 2260 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2261 geners: []dataGenerator{ 2262 newDefaultGener(0.2, types.ETDatetime), 2263 newDefaultGener(0.2, types.ETInt), 2264 }, 2265 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2266 chunkSize: 128, 2267 }, 2268 { 2269 retEvalType: types.ETDatetime, 2270 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2271 geners: []dataGenerator{ 2272 newDefaultGener(0.2, types.ETDatetime), 2273 newDefaultGener(0.2, types.ETInt), 2274 }, 2275 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2276 chunkSize: 128, 2277 }, 2278 { 2279 retEvalType: types.ETDatetime, 2280 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2281 geners: []dataGenerator{ 2282 newDefaultGener(0.2, types.ETDatetime), 2283 newDefaultGener(0.2, types.ETInt), 2284 }, 2285 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2286 chunkSize: 128, 2287 }, 2288 { 2289 retEvalType: types.ETDatetime, 2290 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 2291 geners: []dataGenerator{ 2292 newDefaultGener(0.2, types.ETDatetime), 2293 newDefaultGener(0.2, types.ETInt), 2294 }, 2295 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2296 chunkSize: 128, 2297 }, 2298 // builtinAddDateDatetimeRealSig 2299 { 2300 retEvalType: types.ETDatetime, 2301 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2302 geners: []dataGenerator{ 2303 newDefaultGener(0.2, types.ETDatetime), 2304 newDefaultGener(0.2, types.ETReal), 2305 }, 2306 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2307 chunkSize: 128, 2308 }, 2309 { 2310 retEvalType: types.ETDatetime, 2311 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2312 geners: []dataGenerator{ 2313 newDefaultGener(0.2, types.ETDatetime), 2314 newDefaultGener(0.2, types.ETReal), 2315 }, 2316 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2317 chunkSize: 128, 2318 }, 2319 { 2320 retEvalType: types.ETDatetime, 2321 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2322 geners: []dataGenerator{ 2323 newDefaultGener(0.2, types.ETDatetime), 2324 newDefaultGener(0.2, types.ETReal), 2325 }, 2326 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2327 chunkSize: 128, 2328 }, 2329 { 2330 retEvalType: types.ETDatetime, 2331 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2332 geners: []dataGenerator{ 2333 newDefaultGener(0.2, types.ETDatetime), 2334 newDefaultGener(0.2, types.ETReal), 2335 }, 2336 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2337 chunkSize: 128, 2338 }, 2339 { 2340 retEvalType: types.ETDatetime, 2341 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2342 geners: []dataGenerator{ 2343 newDefaultGener(0.2, types.ETDatetime), 2344 newDefaultGener(0.2, types.ETReal), 2345 }, 2346 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2347 chunkSize: 128, 2348 }, 2349 { 2350 retEvalType: types.ETDatetime, 2351 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2352 geners: []dataGenerator{ 2353 newDefaultGener(0.2, types.ETDatetime), 2354 newDefaultGener(0.2, types.ETReal), 2355 }, 2356 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2357 chunkSize: 128, 2358 }, 2359 { 2360 retEvalType: types.ETDatetime, 2361 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2362 geners: []dataGenerator{ 2363 newDefaultGener(0.2, types.ETDatetime), 2364 newDefaultGener(0.2, types.ETReal), 2365 }, 2366 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2367 chunkSize: 128, 2368 }, 2369 { 2370 retEvalType: types.ETDatetime, 2371 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2372 geners: []dataGenerator{ 2373 newDefaultGener(0.2, types.ETDatetime), 2374 newDefaultGener(0.2, types.ETReal), 2375 }, 2376 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2377 chunkSize: 128, 2378 }, 2379 { 2380 retEvalType: types.ETDatetime, 2381 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2382 geners: []dataGenerator{ 2383 newDefaultGener(0.2, types.ETDatetime), 2384 newDefaultGener(0.2, types.ETReal), 2385 }, 2386 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2387 chunkSize: 128, 2388 }, 2389 { 2390 retEvalType: types.ETDatetime, 2391 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2392 geners: []dataGenerator{ 2393 newDefaultGener(0.2, types.ETDatetime), 2394 newDefaultGener(0.2, types.ETReal), 2395 }, 2396 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2397 chunkSize: 128, 2398 }, 2399 { 2400 retEvalType: types.ETDatetime, 2401 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2402 geners: []dataGenerator{ 2403 newDefaultGener(0.2, types.ETDatetime), 2404 newDefaultGener(0.2, types.ETReal), 2405 }, 2406 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2407 chunkSize: 128, 2408 }, 2409 { 2410 retEvalType: types.ETDatetime, 2411 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2412 geners: []dataGenerator{ 2413 newDefaultGener(0.2, types.ETDatetime), 2414 newDefaultGener(0.2, types.ETReal), 2415 }, 2416 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2417 chunkSize: 128, 2418 }, 2419 { 2420 retEvalType: types.ETDatetime, 2421 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2422 geners: []dataGenerator{ 2423 newDefaultGener(0.2, types.ETDatetime), 2424 newDefaultGener(0.2, types.ETReal), 2425 }, 2426 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2427 chunkSize: 128, 2428 }, 2429 { 2430 retEvalType: types.ETDatetime, 2431 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2432 geners: []dataGenerator{ 2433 newDefaultGener(0.2, types.ETDatetime), 2434 newDefaultGener(0.2, types.ETReal), 2435 }, 2436 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2437 chunkSize: 128, 2438 }, 2439 { 2440 retEvalType: types.ETDatetime, 2441 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2442 geners: []dataGenerator{ 2443 newDefaultGener(0.2, types.ETDatetime), 2444 newDefaultGener(0.2, types.ETReal), 2445 }, 2446 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2447 chunkSize: 128, 2448 }, 2449 { 2450 retEvalType: types.ETDatetime, 2451 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2452 geners: []dataGenerator{ 2453 newDefaultGener(0.2, types.ETDatetime), 2454 newDefaultGener(0.2, types.ETReal), 2455 }, 2456 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2457 chunkSize: 128, 2458 }, 2459 { 2460 retEvalType: types.ETDatetime, 2461 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2462 geners: []dataGenerator{ 2463 newDefaultGener(0.2, types.ETDatetime), 2464 newDefaultGener(0.2, types.ETReal), 2465 }, 2466 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2467 chunkSize: 128, 2468 }, 2469 { 2470 retEvalType: types.ETDatetime, 2471 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2472 geners: []dataGenerator{ 2473 newDefaultGener(0.2, types.ETDatetime), 2474 newDefaultGener(0.2, types.ETReal), 2475 }, 2476 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2477 chunkSize: 128, 2478 }, 2479 { 2480 retEvalType: types.ETDatetime, 2481 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2482 geners: []dataGenerator{ 2483 newDefaultGener(0.2, types.ETDatetime), 2484 newDefaultGener(0.2, types.ETReal), 2485 }, 2486 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2487 chunkSize: 128, 2488 }, 2489 { 2490 retEvalType: types.ETDatetime, 2491 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 2492 geners: []dataGenerator{ 2493 newDefaultGener(0.2, types.ETDatetime), 2494 newDefaultGener(0.2, types.ETReal), 2495 }, 2496 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2497 chunkSize: 128, 2498 }, 2499 // builtinAddDateDatetimeDecimalSig 2500 { 2501 retEvalType: types.ETDatetime, 2502 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2503 geners: []dataGenerator{ 2504 newDefaultGener(0.2, types.ETDatetime), 2505 newDefaultGener(0.2, types.ETDecimal), 2506 }, 2507 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2508 chunkSize: 128, 2509 }, 2510 { 2511 retEvalType: types.ETDatetime, 2512 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2513 geners: []dataGenerator{ 2514 newDefaultGener(0.2, types.ETDatetime), 2515 newDefaultGener(0.2, types.ETDecimal), 2516 }, 2517 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2518 chunkSize: 128, 2519 }, 2520 { 2521 retEvalType: types.ETDatetime, 2522 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2523 geners: []dataGenerator{ 2524 newDefaultGener(0.2, types.ETDatetime), 2525 newDefaultGener(0.2, types.ETDecimal), 2526 }, 2527 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2528 chunkSize: 128, 2529 }, 2530 { 2531 retEvalType: types.ETDatetime, 2532 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2533 geners: []dataGenerator{ 2534 newDefaultGener(0.2, types.ETDatetime), 2535 newDefaultGener(0.2, types.ETDecimal), 2536 }, 2537 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2538 chunkSize: 128, 2539 }, 2540 { 2541 retEvalType: types.ETDatetime, 2542 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2543 geners: []dataGenerator{ 2544 newDefaultGener(0.2, types.ETDatetime), 2545 newDefaultGener(0.2, types.ETDecimal), 2546 }, 2547 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2548 chunkSize: 128, 2549 }, 2550 { 2551 retEvalType: types.ETDatetime, 2552 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2553 geners: []dataGenerator{ 2554 newDefaultGener(0.2, types.ETDatetime), 2555 newDefaultGener(0.2, types.ETDecimal), 2556 }, 2557 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2558 chunkSize: 128, 2559 }, 2560 { 2561 retEvalType: types.ETDatetime, 2562 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2563 geners: []dataGenerator{ 2564 newDefaultGener(0.2, types.ETDatetime), 2565 newDefaultGener(0.2, types.ETDecimal), 2566 }, 2567 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2568 chunkSize: 128, 2569 }, 2570 { 2571 retEvalType: types.ETDatetime, 2572 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2573 geners: []dataGenerator{ 2574 newDefaultGener(0.2, types.ETDatetime), 2575 newDefaultGener(0.2, types.ETDecimal), 2576 }, 2577 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2578 chunkSize: 128, 2579 }, 2580 { 2581 retEvalType: types.ETDatetime, 2582 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2583 geners: []dataGenerator{ 2584 newDefaultGener(0.2, types.ETDatetime), 2585 newDefaultGener(0.2, types.ETDecimal), 2586 }, 2587 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2588 chunkSize: 128, 2589 }, 2590 { 2591 retEvalType: types.ETDatetime, 2592 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2593 geners: []dataGenerator{ 2594 newDefaultGener(0.2, types.ETDatetime), 2595 newDefaultGener(0.2, types.ETDecimal), 2596 }, 2597 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2598 chunkSize: 128, 2599 }, 2600 { 2601 retEvalType: types.ETDatetime, 2602 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2603 geners: []dataGenerator{ 2604 newDefaultGener(0.2, types.ETDatetime), 2605 newDefaultGener(0.2, types.ETDecimal), 2606 }, 2607 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2608 chunkSize: 128, 2609 }, 2610 { 2611 retEvalType: types.ETDatetime, 2612 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2613 geners: []dataGenerator{ 2614 newDefaultGener(0.2, types.ETDatetime), 2615 newDefaultGener(0.2, types.ETDecimal), 2616 }, 2617 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2618 chunkSize: 128, 2619 }, 2620 { 2621 retEvalType: types.ETDatetime, 2622 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2623 geners: []dataGenerator{ 2624 newDefaultGener(0.2, types.ETDatetime), 2625 newDefaultGener(0.2, types.ETDecimal), 2626 }, 2627 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2628 chunkSize: 128, 2629 }, 2630 { 2631 retEvalType: types.ETDatetime, 2632 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2633 geners: []dataGenerator{ 2634 newDefaultGener(0.2, types.ETDatetime), 2635 newDefaultGener(0.2, types.ETDecimal), 2636 }, 2637 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2638 chunkSize: 128, 2639 }, 2640 { 2641 retEvalType: types.ETDatetime, 2642 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2643 geners: []dataGenerator{ 2644 newDefaultGener(0.2, types.ETDatetime), 2645 newDefaultGener(0.2, types.ETDecimal), 2646 }, 2647 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2648 chunkSize: 128, 2649 }, 2650 { 2651 retEvalType: types.ETDatetime, 2652 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2653 geners: []dataGenerator{ 2654 newDefaultGener(0.2, types.ETDatetime), 2655 newDefaultGener(0.2, types.ETDecimal), 2656 }, 2657 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2658 chunkSize: 128, 2659 }, 2660 { 2661 retEvalType: types.ETDatetime, 2662 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2663 geners: []dataGenerator{ 2664 newDefaultGener(0.2, types.ETDatetime), 2665 newDefaultGener(0.2, types.ETDecimal), 2666 }, 2667 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2668 chunkSize: 128, 2669 }, 2670 { 2671 retEvalType: types.ETDatetime, 2672 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2673 geners: []dataGenerator{ 2674 newDefaultGener(0.2, types.ETDatetime), 2675 newDefaultGener(0.2, types.ETDecimal), 2676 }, 2677 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2678 chunkSize: 128, 2679 }, 2680 { 2681 retEvalType: types.ETDatetime, 2682 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2683 geners: []dataGenerator{ 2684 newDefaultGener(0.2, types.ETDatetime), 2685 newDefaultGener(0.2, types.ETDecimal), 2686 }, 2687 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2688 chunkSize: 128, 2689 }, 2690 { 2691 retEvalType: types.ETDatetime, 2692 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 2693 geners: []dataGenerator{ 2694 newDefaultGener(0.2, types.ETDatetime), 2695 newDefaultGener(0.2, types.ETDecimal), 2696 }, 2697 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2698 chunkSize: 128, 2699 }, 2700 // builtinAddDateDurationStringSig 2701 { 2702 retEvalType: types.ETDuration, 2703 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2704 geners: []dataGenerator{ 2705 newDefaultGener(0.2, types.ETDuration), 2706 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2707 }, 2708 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2709 chunkSize: 128, 2710 }, 2711 { 2712 retEvalType: types.ETDuration, 2713 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2714 geners: []dataGenerator{ 2715 newDefaultGener(0.2, types.ETDuration), 2716 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2717 }, 2718 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2719 chunkSize: 128, 2720 }, 2721 { 2722 retEvalType: types.ETDuration, 2723 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2724 geners: []dataGenerator{ 2725 newDefaultGener(0.2, types.ETDuration), 2726 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2727 }, 2728 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2729 chunkSize: 128, 2730 }, 2731 { 2732 retEvalType: types.ETDuration, 2733 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2734 geners: []dataGenerator{ 2735 newDefaultGener(0.2, types.ETDuration), 2736 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2737 }, 2738 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2739 chunkSize: 128, 2740 }, 2741 { 2742 retEvalType: types.ETDuration, 2743 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2744 geners: []dataGenerator{ 2745 newDefaultGener(0.2, types.ETDuration), 2746 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2747 }, 2748 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2749 chunkSize: 128, 2750 }, 2751 { 2752 retEvalType: types.ETDuration, 2753 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2754 geners: []dataGenerator{ 2755 newDefaultGener(0.2, types.ETDuration), 2756 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2757 }, 2758 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2759 chunkSize: 128, 2760 }, 2761 { 2762 retEvalType: types.ETDuration, 2763 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2764 geners: []dataGenerator{ 2765 newDefaultGener(0.2, types.ETDuration), 2766 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2767 }, 2768 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2769 chunkSize: 128, 2770 }, 2771 { 2772 retEvalType: types.ETDuration, 2773 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2774 geners: []dataGenerator{ 2775 newDefaultGener(0.2, types.ETDuration), 2776 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2777 }, 2778 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2779 chunkSize: 128, 2780 }, 2781 { 2782 retEvalType: types.ETDuration, 2783 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2784 geners: []dataGenerator{ 2785 newDefaultGener(0.2, types.ETDuration), 2786 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2787 }, 2788 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2789 chunkSize: 128, 2790 }, 2791 { 2792 retEvalType: types.ETDuration, 2793 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2794 geners: []dataGenerator{ 2795 newDefaultGener(0.2, types.ETDuration), 2796 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2797 }, 2798 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2799 chunkSize: 128, 2800 }, 2801 { 2802 retEvalType: types.ETDuration, 2803 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2804 geners: []dataGenerator{ 2805 newDefaultGener(0.2, types.ETDuration), 2806 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2807 }, 2808 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2809 chunkSize: 128, 2810 }, 2811 { 2812 retEvalType: types.ETDuration, 2813 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2814 geners: []dataGenerator{ 2815 newDefaultGener(0.2, types.ETDuration), 2816 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2817 }, 2818 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2819 chunkSize: 128, 2820 }, 2821 { 2822 retEvalType: types.ETDuration, 2823 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2824 geners: []dataGenerator{ 2825 newDefaultGener(0.2, types.ETDuration), 2826 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2827 }, 2828 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2829 chunkSize: 128, 2830 }, 2831 { 2832 retEvalType: types.ETDuration, 2833 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2834 geners: []dataGenerator{ 2835 newDefaultGener(0.2, types.ETDuration), 2836 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2837 }, 2838 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2839 chunkSize: 128, 2840 }, 2841 { 2842 retEvalType: types.ETDuration, 2843 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2844 geners: []dataGenerator{ 2845 newDefaultGener(0.2, types.ETDuration), 2846 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2847 }, 2848 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2849 chunkSize: 128, 2850 }, 2851 { 2852 retEvalType: types.ETDuration, 2853 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2854 geners: []dataGenerator{ 2855 newDefaultGener(0.2, types.ETDuration), 2856 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2857 }, 2858 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2859 chunkSize: 128, 2860 }, 2861 { 2862 retEvalType: types.ETDuration, 2863 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2864 geners: []dataGenerator{ 2865 newDefaultGener(0.2, types.ETDuration), 2866 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2867 }, 2868 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2869 chunkSize: 128, 2870 }, 2871 { 2872 retEvalType: types.ETDuration, 2873 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2874 geners: []dataGenerator{ 2875 newDefaultGener(0.2, types.ETDuration), 2876 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2877 }, 2878 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2879 chunkSize: 128, 2880 }, 2881 { 2882 retEvalType: types.ETDuration, 2883 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2884 geners: []dataGenerator{ 2885 newDefaultGener(0.2, types.ETDuration), 2886 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2887 }, 2888 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2889 chunkSize: 128, 2890 }, 2891 { 2892 retEvalType: types.ETDuration, 2893 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 2894 geners: []dataGenerator{ 2895 newDefaultGener(0.2, types.ETDuration), 2896 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 2897 }, 2898 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2899 chunkSize: 128, 2900 }, 2901 // builtinAddDateDurationIntSig 2902 { 2903 retEvalType: types.ETDuration, 2904 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2905 geners: []dataGenerator{ 2906 newDefaultGener(0.2, types.ETDuration), 2907 newDefaultGener(0.2, types.ETInt), 2908 }, 2909 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2910 chunkSize: 128, 2911 }, 2912 { 2913 retEvalType: types.ETDuration, 2914 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2915 geners: []dataGenerator{ 2916 newDefaultGener(0.2, types.ETDuration), 2917 newDefaultGener(0.2, types.ETInt), 2918 }, 2919 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2920 chunkSize: 128, 2921 }, 2922 { 2923 retEvalType: types.ETDuration, 2924 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2925 geners: []dataGenerator{ 2926 newDefaultGener(0.2, types.ETDuration), 2927 newDefaultGener(0.2, types.ETInt), 2928 }, 2929 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2930 chunkSize: 128, 2931 }, 2932 { 2933 retEvalType: types.ETDuration, 2934 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2935 geners: []dataGenerator{ 2936 newDefaultGener(0.2, types.ETDuration), 2937 newDefaultGener(0.2, types.ETInt), 2938 }, 2939 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2940 chunkSize: 128, 2941 }, 2942 { 2943 retEvalType: types.ETDuration, 2944 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2945 geners: []dataGenerator{ 2946 newDefaultGener(0.2, types.ETDuration), 2947 newDefaultGener(0.2, types.ETInt), 2948 }, 2949 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2950 chunkSize: 128, 2951 }, 2952 { 2953 retEvalType: types.ETDuration, 2954 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2955 geners: []dataGenerator{ 2956 newDefaultGener(0.2, types.ETDuration), 2957 newDefaultGener(0.2, types.ETInt), 2958 }, 2959 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2960 chunkSize: 128, 2961 }, 2962 { 2963 retEvalType: types.ETDuration, 2964 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2965 geners: []dataGenerator{ 2966 newDefaultGener(0.2, types.ETDuration), 2967 newDefaultGener(0.2, types.ETInt), 2968 }, 2969 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2970 chunkSize: 128, 2971 }, 2972 { 2973 retEvalType: types.ETDuration, 2974 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2975 geners: []dataGenerator{ 2976 newDefaultGener(0.2, types.ETDuration), 2977 newDefaultGener(0.2, types.ETInt), 2978 }, 2979 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2980 chunkSize: 128, 2981 }, 2982 { 2983 retEvalType: types.ETDuration, 2984 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2985 geners: []dataGenerator{ 2986 newDefaultGener(0.2, types.ETDuration), 2987 newDefaultGener(0.2, types.ETInt), 2988 }, 2989 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 2990 chunkSize: 128, 2991 }, 2992 { 2993 retEvalType: types.ETDuration, 2994 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 2995 geners: []dataGenerator{ 2996 newDefaultGener(0.2, types.ETDuration), 2997 newDefaultGener(0.2, types.ETInt), 2998 }, 2999 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3000 chunkSize: 128, 3001 }, 3002 { 3003 retEvalType: types.ETDuration, 3004 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3005 geners: []dataGenerator{ 3006 newDefaultGener(0.2, types.ETDuration), 3007 newDefaultGener(0.2, types.ETInt), 3008 }, 3009 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3010 chunkSize: 128, 3011 }, 3012 { 3013 retEvalType: types.ETDuration, 3014 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3015 geners: []dataGenerator{ 3016 newDefaultGener(0.2, types.ETDuration), 3017 newDefaultGener(0.2, types.ETInt), 3018 }, 3019 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3020 chunkSize: 128, 3021 }, 3022 { 3023 retEvalType: types.ETDuration, 3024 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3025 geners: []dataGenerator{ 3026 newDefaultGener(0.2, types.ETDuration), 3027 newDefaultGener(0.2, types.ETInt), 3028 }, 3029 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3030 chunkSize: 128, 3031 }, 3032 { 3033 retEvalType: types.ETDuration, 3034 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3035 geners: []dataGenerator{ 3036 newDefaultGener(0.2, types.ETDuration), 3037 newDefaultGener(0.2, types.ETInt), 3038 }, 3039 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3040 chunkSize: 128, 3041 }, 3042 { 3043 retEvalType: types.ETDuration, 3044 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3045 geners: []dataGenerator{ 3046 newDefaultGener(0.2, types.ETDuration), 3047 newDefaultGener(0.2, types.ETInt), 3048 }, 3049 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3050 chunkSize: 128, 3051 }, 3052 { 3053 retEvalType: types.ETDuration, 3054 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3055 geners: []dataGenerator{ 3056 newDefaultGener(0.2, types.ETDuration), 3057 newDefaultGener(0.2, types.ETInt), 3058 }, 3059 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3060 chunkSize: 128, 3061 }, 3062 { 3063 retEvalType: types.ETDuration, 3064 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3065 geners: []dataGenerator{ 3066 newDefaultGener(0.2, types.ETDuration), 3067 newDefaultGener(0.2, types.ETInt), 3068 }, 3069 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3070 chunkSize: 128, 3071 }, 3072 { 3073 retEvalType: types.ETDuration, 3074 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3075 geners: []dataGenerator{ 3076 newDefaultGener(0.2, types.ETDuration), 3077 newDefaultGener(0.2, types.ETInt), 3078 }, 3079 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3080 chunkSize: 128, 3081 }, 3082 { 3083 retEvalType: types.ETDuration, 3084 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3085 geners: []dataGenerator{ 3086 newDefaultGener(0.2, types.ETDuration), 3087 newDefaultGener(0.2, types.ETInt), 3088 }, 3089 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3090 chunkSize: 128, 3091 }, 3092 { 3093 retEvalType: types.ETDuration, 3094 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 3095 geners: []dataGenerator{ 3096 newDefaultGener(0.2, types.ETDuration), 3097 newDefaultGener(0.2, types.ETInt), 3098 }, 3099 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3100 chunkSize: 128, 3101 }, 3102 // builtinAddDateDurationRealSig 3103 { 3104 retEvalType: types.ETDuration, 3105 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3106 geners: []dataGenerator{ 3107 newDefaultGener(0.2, types.ETDuration), 3108 newDefaultGener(0.2, types.ETReal), 3109 }, 3110 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3111 chunkSize: 128, 3112 }, 3113 { 3114 retEvalType: types.ETDuration, 3115 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3116 geners: []dataGenerator{ 3117 newDefaultGener(0.2, types.ETDuration), 3118 newDefaultGener(0.2, types.ETReal), 3119 }, 3120 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3121 chunkSize: 128, 3122 }, 3123 { 3124 retEvalType: types.ETDuration, 3125 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3126 geners: []dataGenerator{ 3127 newDefaultGener(0.2, types.ETDuration), 3128 newDefaultGener(0.2, types.ETReal), 3129 }, 3130 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3131 chunkSize: 128, 3132 }, 3133 { 3134 retEvalType: types.ETDuration, 3135 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3136 geners: []dataGenerator{ 3137 newDefaultGener(0.2, types.ETDuration), 3138 newDefaultGener(0.2, types.ETReal), 3139 }, 3140 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3141 chunkSize: 128, 3142 }, 3143 { 3144 retEvalType: types.ETDuration, 3145 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3146 geners: []dataGenerator{ 3147 newDefaultGener(0.2, types.ETDuration), 3148 newDefaultGener(0.2, types.ETReal), 3149 }, 3150 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3151 chunkSize: 128, 3152 }, 3153 { 3154 retEvalType: types.ETDuration, 3155 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3156 geners: []dataGenerator{ 3157 newDefaultGener(0.2, types.ETDuration), 3158 newDefaultGener(0.2, types.ETReal), 3159 }, 3160 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3161 chunkSize: 128, 3162 }, 3163 { 3164 retEvalType: types.ETDuration, 3165 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3166 geners: []dataGenerator{ 3167 newDefaultGener(0.2, types.ETDuration), 3168 newDefaultGener(0.2, types.ETReal), 3169 }, 3170 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3171 chunkSize: 128, 3172 }, 3173 { 3174 retEvalType: types.ETDuration, 3175 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3176 geners: []dataGenerator{ 3177 newDefaultGener(0.2, types.ETDuration), 3178 newDefaultGener(0.2, types.ETReal), 3179 }, 3180 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3181 chunkSize: 128, 3182 }, 3183 { 3184 retEvalType: types.ETDuration, 3185 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3186 geners: []dataGenerator{ 3187 newDefaultGener(0.2, types.ETDuration), 3188 newDefaultGener(0.2, types.ETReal), 3189 }, 3190 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3191 chunkSize: 128, 3192 }, 3193 { 3194 retEvalType: types.ETDuration, 3195 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3196 geners: []dataGenerator{ 3197 newDefaultGener(0.2, types.ETDuration), 3198 newDefaultGener(0.2, types.ETReal), 3199 }, 3200 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3201 chunkSize: 128, 3202 }, 3203 { 3204 retEvalType: types.ETDuration, 3205 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3206 geners: []dataGenerator{ 3207 newDefaultGener(0.2, types.ETDuration), 3208 newDefaultGener(0.2, types.ETReal), 3209 }, 3210 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3211 chunkSize: 128, 3212 }, 3213 { 3214 retEvalType: types.ETDuration, 3215 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3216 geners: []dataGenerator{ 3217 newDefaultGener(0.2, types.ETDuration), 3218 newDefaultGener(0.2, types.ETReal), 3219 }, 3220 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3221 chunkSize: 128, 3222 }, 3223 { 3224 retEvalType: types.ETDuration, 3225 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3226 geners: []dataGenerator{ 3227 newDefaultGener(0.2, types.ETDuration), 3228 newDefaultGener(0.2, types.ETReal), 3229 }, 3230 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3231 chunkSize: 128, 3232 }, 3233 { 3234 retEvalType: types.ETDuration, 3235 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3236 geners: []dataGenerator{ 3237 newDefaultGener(0.2, types.ETDuration), 3238 newDefaultGener(0.2, types.ETReal), 3239 }, 3240 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3241 chunkSize: 128, 3242 }, 3243 { 3244 retEvalType: types.ETDuration, 3245 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3246 geners: []dataGenerator{ 3247 newDefaultGener(0.2, types.ETDuration), 3248 newDefaultGener(0.2, types.ETReal), 3249 }, 3250 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3251 chunkSize: 128, 3252 }, 3253 { 3254 retEvalType: types.ETDuration, 3255 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3256 geners: []dataGenerator{ 3257 newDefaultGener(0.2, types.ETDuration), 3258 newDefaultGener(0.2, types.ETReal), 3259 }, 3260 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3261 chunkSize: 128, 3262 }, 3263 { 3264 retEvalType: types.ETDuration, 3265 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3266 geners: []dataGenerator{ 3267 newDefaultGener(0.2, types.ETDuration), 3268 newDefaultGener(0.2, types.ETReal), 3269 }, 3270 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3271 chunkSize: 128, 3272 }, 3273 { 3274 retEvalType: types.ETDuration, 3275 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3276 geners: []dataGenerator{ 3277 newDefaultGener(0.2, types.ETDuration), 3278 newDefaultGener(0.2, types.ETReal), 3279 }, 3280 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3281 chunkSize: 128, 3282 }, 3283 { 3284 retEvalType: types.ETDuration, 3285 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3286 geners: []dataGenerator{ 3287 newDefaultGener(0.2, types.ETDuration), 3288 newDefaultGener(0.2, types.ETReal), 3289 }, 3290 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3291 chunkSize: 128, 3292 }, 3293 { 3294 retEvalType: types.ETDuration, 3295 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 3296 geners: []dataGenerator{ 3297 newDefaultGener(0.2, types.ETDuration), 3298 newDefaultGener(0.2, types.ETReal), 3299 }, 3300 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3301 chunkSize: 128, 3302 }, 3303 // builtinAddDateDurationDecimalSig 3304 { 3305 retEvalType: types.ETDuration, 3306 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3307 geners: []dataGenerator{ 3308 newDefaultGener(0.2, types.ETDuration), 3309 newDefaultGener(0.2, types.ETDecimal), 3310 }, 3311 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3312 chunkSize: 128, 3313 }, 3314 { 3315 retEvalType: types.ETDuration, 3316 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3317 geners: []dataGenerator{ 3318 newDefaultGener(0.2, types.ETDuration), 3319 newDefaultGener(0.2, types.ETDecimal), 3320 }, 3321 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3322 chunkSize: 128, 3323 }, 3324 { 3325 retEvalType: types.ETDuration, 3326 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3327 geners: []dataGenerator{ 3328 newDefaultGener(0.2, types.ETDuration), 3329 newDefaultGener(0.2, types.ETDecimal), 3330 }, 3331 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3332 chunkSize: 128, 3333 }, 3334 { 3335 retEvalType: types.ETDuration, 3336 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3337 geners: []dataGenerator{ 3338 newDefaultGener(0.2, types.ETDuration), 3339 newDefaultGener(0.2, types.ETDecimal), 3340 }, 3341 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3342 chunkSize: 128, 3343 }, 3344 { 3345 retEvalType: types.ETDuration, 3346 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3347 geners: []dataGenerator{ 3348 newDefaultGener(0.2, types.ETDuration), 3349 newDefaultGener(0.2, types.ETDecimal), 3350 }, 3351 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3352 chunkSize: 128, 3353 }, 3354 { 3355 retEvalType: types.ETDuration, 3356 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3357 geners: []dataGenerator{ 3358 newDefaultGener(0.2, types.ETDuration), 3359 newDefaultGener(0.2, types.ETDecimal), 3360 }, 3361 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3362 chunkSize: 128, 3363 }, 3364 { 3365 retEvalType: types.ETDuration, 3366 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3367 geners: []dataGenerator{ 3368 newDefaultGener(0.2, types.ETDuration), 3369 newDefaultGener(0.2, types.ETDecimal), 3370 }, 3371 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3372 chunkSize: 128, 3373 }, 3374 { 3375 retEvalType: types.ETDuration, 3376 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3377 geners: []dataGenerator{ 3378 newDefaultGener(0.2, types.ETDuration), 3379 newDefaultGener(0.2, types.ETDecimal), 3380 }, 3381 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3382 chunkSize: 128, 3383 }, 3384 { 3385 retEvalType: types.ETDuration, 3386 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3387 geners: []dataGenerator{ 3388 newDefaultGener(0.2, types.ETDuration), 3389 newDefaultGener(0.2, types.ETDecimal), 3390 }, 3391 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3392 chunkSize: 128, 3393 }, 3394 { 3395 retEvalType: types.ETDuration, 3396 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3397 geners: []dataGenerator{ 3398 newDefaultGener(0.2, types.ETDuration), 3399 newDefaultGener(0.2, types.ETDecimal), 3400 }, 3401 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3402 chunkSize: 128, 3403 }, 3404 { 3405 retEvalType: types.ETDuration, 3406 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3407 geners: []dataGenerator{ 3408 newDefaultGener(0.2, types.ETDuration), 3409 newDefaultGener(0.2, types.ETDecimal), 3410 }, 3411 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3412 chunkSize: 128, 3413 }, 3414 { 3415 retEvalType: types.ETDuration, 3416 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3417 geners: []dataGenerator{ 3418 newDefaultGener(0.2, types.ETDuration), 3419 newDefaultGener(0.2, types.ETDecimal), 3420 }, 3421 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3422 chunkSize: 128, 3423 }, 3424 { 3425 retEvalType: types.ETDuration, 3426 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3427 geners: []dataGenerator{ 3428 newDefaultGener(0.2, types.ETDuration), 3429 newDefaultGener(0.2, types.ETDecimal), 3430 }, 3431 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3432 chunkSize: 128, 3433 }, 3434 { 3435 retEvalType: types.ETDuration, 3436 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3437 geners: []dataGenerator{ 3438 newDefaultGener(0.2, types.ETDuration), 3439 newDefaultGener(0.2, types.ETDecimal), 3440 }, 3441 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3442 chunkSize: 128, 3443 }, 3444 { 3445 retEvalType: types.ETDuration, 3446 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3447 geners: []dataGenerator{ 3448 newDefaultGener(0.2, types.ETDuration), 3449 newDefaultGener(0.2, types.ETDecimal), 3450 }, 3451 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3452 chunkSize: 128, 3453 }, 3454 { 3455 retEvalType: types.ETDuration, 3456 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3457 geners: []dataGenerator{ 3458 newDefaultGener(0.2, types.ETDuration), 3459 newDefaultGener(0.2, types.ETDecimal), 3460 }, 3461 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3462 chunkSize: 128, 3463 }, 3464 { 3465 retEvalType: types.ETDuration, 3466 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3467 geners: []dataGenerator{ 3468 newDefaultGener(0.2, types.ETDuration), 3469 newDefaultGener(0.2, types.ETDecimal), 3470 }, 3471 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3472 chunkSize: 128, 3473 }, 3474 { 3475 retEvalType: types.ETDuration, 3476 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3477 geners: []dataGenerator{ 3478 newDefaultGener(0.2, types.ETDuration), 3479 newDefaultGener(0.2, types.ETDecimal), 3480 }, 3481 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3482 chunkSize: 128, 3483 }, 3484 { 3485 retEvalType: types.ETDuration, 3486 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3487 geners: []dataGenerator{ 3488 newDefaultGener(0.2, types.ETDuration), 3489 newDefaultGener(0.2, types.ETDecimal), 3490 }, 3491 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3492 chunkSize: 128, 3493 }, 3494 { 3495 retEvalType: types.ETDuration, 3496 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 3497 geners: []dataGenerator{ 3498 newDefaultGener(0.2, types.ETDuration), 3499 newDefaultGener(0.2, types.ETDecimal), 3500 }, 3501 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3502 chunkSize: 128, 3503 }, 3504 }, 3505 3506 ast.SubDate: { 3507 // builtinSubDateStringStringSig 3508 { 3509 retEvalType: types.ETDatetime, 3510 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3511 geners: []dataGenerator{ 3512 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3513 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3514 }, 3515 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3516 chunkSize: 128, 3517 }, 3518 { 3519 retEvalType: types.ETDatetime, 3520 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3521 geners: []dataGenerator{ 3522 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3523 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3524 }, 3525 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3526 chunkSize: 128, 3527 }, 3528 { 3529 retEvalType: types.ETDatetime, 3530 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3531 geners: []dataGenerator{ 3532 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3533 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3534 }, 3535 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3536 chunkSize: 128, 3537 }, 3538 { 3539 retEvalType: types.ETDatetime, 3540 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3541 geners: []dataGenerator{ 3542 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3543 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3544 }, 3545 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3546 chunkSize: 128, 3547 }, 3548 { 3549 retEvalType: types.ETDatetime, 3550 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3551 geners: []dataGenerator{ 3552 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3553 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3554 }, 3555 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3556 chunkSize: 128, 3557 }, 3558 { 3559 retEvalType: types.ETDatetime, 3560 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3561 geners: []dataGenerator{ 3562 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3563 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3564 }, 3565 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3566 chunkSize: 128, 3567 }, 3568 { 3569 retEvalType: types.ETDatetime, 3570 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3571 geners: []dataGenerator{ 3572 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3573 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3574 }, 3575 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3576 chunkSize: 128, 3577 }, 3578 { 3579 retEvalType: types.ETDatetime, 3580 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3581 geners: []dataGenerator{ 3582 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3583 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3584 }, 3585 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3586 chunkSize: 128, 3587 }, 3588 { 3589 retEvalType: types.ETDatetime, 3590 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3591 geners: []dataGenerator{ 3592 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3593 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3594 }, 3595 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3596 chunkSize: 128, 3597 }, 3598 { 3599 retEvalType: types.ETDatetime, 3600 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3601 geners: []dataGenerator{ 3602 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3603 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3604 }, 3605 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3606 chunkSize: 128, 3607 }, 3608 { 3609 retEvalType: types.ETDatetime, 3610 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3611 geners: []dataGenerator{ 3612 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3613 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3614 }, 3615 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3616 chunkSize: 128, 3617 }, 3618 { 3619 retEvalType: types.ETDatetime, 3620 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3621 geners: []dataGenerator{ 3622 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3623 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3624 }, 3625 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3626 chunkSize: 128, 3627 }, 3628 { 3629 retEvalType: types.ETDatetime, 3630 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3631 geners: []dataGenerator{ 3632 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3633 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3634 }, 3635 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3636 chunkSize: 128, 3637 }, 3638 { 3639 retEvalType: types.ETDatetime, 3640 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3641 geners: []dataGenerator{ 3642 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3643 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3644 }, 3645 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3646 chunkSize: 128, 3647 }, 3648 { 3649 retEvalType: types.ETDatetime, 3650 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3651 geners: []dataGenerator{ 3652 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3653 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3654 }, 3655 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3656 chunkSize: 128, 3657 }, 3658 { 3659 retEvalType: types.ETDatetime, 3660 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3661 geners: []dataGenerator{ 3662 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3663 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3664 }, 3665 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3666 chunkSize: 128, 3667 }, 3668 { 3669 retEvalType: types.ETDatetime, 3670 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3671 geners: []dataGenerator{ 3672 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3673 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3674 }, 3675 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3676 chunkSize: 128, 3677 }, 3678 { 3679 retEvalType: types.ETDatetime, 3680 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3681 geners: []dataGenerator{ 3682 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3683 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3684 }, 3685 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3686 chunkSize: 128, 3687 }, 3688 { 3689 retEvalType: types.ETDatetime, 3690 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3691 geners: []dataGenerator{ 3692 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3693 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3694 }, 3695 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3696 chunkSize: 128, 3697 }, 3698 { 3699 retEvalType: types.ETDatetime, 3700 childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETString}, 3701 geners: []dataGenerator{ 3702 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3703 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 3704 }, 3705 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3706 chunkSize: 128, 3707 }, 3708 // builtinSubDateStringIntSig 3709 { 3710 retEvalType: types.ETDatetime, 3711 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3712 geners: []dataGenerator{ 3713 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3714 newDefaultGener(0.2, types.ETInt), 3715 }, 3716 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3717 chunkSize: 128, 3718 }, 3719 { 3720 retEvalType: types.ETDatetime, 3721 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3722 geners: []dataGenerator{ 3723 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3724 newDefaultGener(0.2, types.ETInt), 3725 }, 3726 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3727 chunkSize: 128, 3728 }, 3729 { 3730 retEvalType: types.ETDatetime, 3731 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3732 geners: []dataGenerator{ 3733 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3734 newDefaultGener(0.2, types.ETInt), 3735 }, 3736 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3737 chunkSize: 128, 3738 }, 3739 { 3740 retEvalType: types.ETDatetime, 3741 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3742 geners: []dataGenerator{ 3743 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3744 newDefaultGener(0.2, types.ETInt), 3745 }, 3746 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3747 chunkSize: 128, 3748 }, 3749 { 3750 retEvalType: types.ETDatetime, 3751 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3752 geners: []dataGenerator{ 3753 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3754 newDefaultGener(0.2, types.ETInt), 3755 }, 3756 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3757 chunkSize: 128, 3758 }, 3759 { 3760 retEvalType: types.ETDatetime, 3761 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3762 geners: []dataGenerator{ 3763 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3764 newDefaultGener(0.2, types.ETInt), 3765 }, 3766 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3767 chunkSize: 128, 3768 }, 3769 { 3770 retEvalType: types.ETDatetime, 3771 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3772 geners: []dataGenerator{ 3773 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3774 newDefaultGener(0.2, types.ETInt), 3775 }, 3776 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3777 chunkSize: 128, 3778 }, 3779 { 3780 retEvalType: types.ETDatetime, 3781 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3782 geners: []dataGenerator{ 3783 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3784 newDefaultGener(0.2, types.ETInt), 3785 }, 3786 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3787 chunkSize: 128, 3788 }, 3789 { 3790 retEvalType: types.ETDatetime, 3791 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3792 geners: []dataGenerator{ 3793 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3794 newDefaultGener(0.2, types.ETInt), 3795 }, 3796 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3797 chunkSize: 128, 3798 }, 3799 { 3800 retEvalType: types.ETDatetime, 3801 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3802 geners: []dataGenerator{ 3803 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3804 newDefaultGener(0.2, types.ETInt), 3805 }, 3806 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3807 chunkSize: 128, 3808 }, 3809 { 3810 retEvalType: types.ETDatetime, 3811 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3812 geners: []dataGenerator{ 3813 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3814 newDefaultGener(0.2, types.ETInt), 3815 }, 3816 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3817 chunkSize: 128, 3818 }, 3819 { 3820 retEvalType: types.ETDatetime, 3821 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3822 geners: []dataGenerator{ 3823 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3824 newDefaultGener(0.2, types.ETInt), 3825 }, 3826 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3827 chunkSize: 128, 3828 }, 3829 { 3830 retEvalType: types.ETDatetime, 3831 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3832 geners: []dataGenerator{ 3833 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3834 newDefaultGener(0.2, types.ETInt), 3835 }, 3836 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3837 chunkSize: 128, 3838 }, 3839 { 3840 retEvalType: types.ETDatetime, 3841 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3842 geners: []dataGenerator{ 3843 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3844 newDefaultGener(0.2, types.ETInt), 3845 }, 3846 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3847 chunkSize: 128, 3848 }, 3849 { 3850 retEvalType: types.ETDatetime, 3851 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3852 geners: []dataGenerator{ 3853 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3854 newDefaultGener(0.2, types.ETInt), 3855 }, 3856 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3857 chunkSize: 128, 3858 }, 3859 { 3860 retEvalType: types.ETDatetime, 3861 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3862 geners: []dataGenerator{ 3863 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3864 newDefaultGener(0.2, types.ETInt), 3865 }, 3866 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3867 chunkSize: 128, 3868 }, 3869 { 3870 retEvalType: types.ETDatetime, 3871 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3872 geners: []dataGenerator{ 3873 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3874 newDefaultGener(0.2, types.ETInt), 3875 }, 3876 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3877 chunkSize: 128, 3878 }, 3879 { 3880 retEvalType: types.ETDatetime, 3881 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3882 geners: []dataGenerator{ 3883 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3884 newDefaultGener(0.2, types.ETInt), 3885 }, 3886 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3887 chunkSize: 128, 3888 }, 3889 { 3890 retEvalType: types.ETDatetime, 3891 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3892 geners: []dataGenerator{ 3893 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3894 newDefaultGener(0.2, types.ETInt), 3895 }, 3896 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3897 chunkSize: 128, 3898 }, 3899 { 3900 retEvalType: types.ETDatetime, 3901 childrenTypes: []types.EvalType{types.ETString, types.ETInt, types.ETString}, 3902 geners: []dataGenerator{ 3903 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3904 newDefaultGener(0.2, types.ETInt), 3905 }, 3906 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3907 chunkSize: 128, 3908 }, 3909 // builtinSubDateStringRealSig 3910 { 3911 retEvalType: types.ETDatetime, 3912 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3913 geners: []dataGenerator{ 3914 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3915 newDefaultGener(0.2, types.ETReal), 3916 }, 3917 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3918 chunkSize: 128, 3919 }, 3920 { 3921 retEvalType: types.ETDatetime, 3922 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3923 geners: []dataGenerator{ 3924 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3925 newDefaultGener(0.2, types.ETReal), 3926 }, 3927 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3928 chunkSize: 128, 3929 }, 3930 { 3931 retEvalType: types.ETDatetime, 3932 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3933 geners: []dataGenerator{ 3934 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3935 newDefaultGener(0.2, types.ETReal), 3936 }, 3937 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3938 chunkSize: 128, 3939 }, 3940 { 3941 retEvalType: types.ETDatetime, 3942 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3943 geners: []dataGenerator{ 3944 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3945 newDefaultGener(0.2, types.ETReal), 3946 }, 3947 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3948 chunkSize: 128, 3949 }, 3950 { 3951 retEvalType: types.ETDatetime, 3952 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3953 geners: []dataGenerator{ 3954 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3955 newDefaultGener(0.2, types.ETReal), 3956 }, 3957 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3958 chunkSize: 128, 3959 }, 3960 { 3961 retEvalType: types.ETDatetime, 3962 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3963 geners: []dataGenerator{ 3964 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3965 newDefaultGener(0.2, types.ETReal), 3966 }, 3967 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3968 chunkSize: 128, 3969 }, 3970 { 3971 retEvalType: types.ETDatetime, 3972 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3973 geners: []dataGenerator{ 3974 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3975 newDefaultGener(0.2, types.ETReal), 3976 }, 3977 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3978 chunkSize: 128, 3979 }, 3980 { 3981 retEvalType: types.ETDatetime, 3982 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3983 geners: []dataGenerator{ 3984 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3985 newDefaultGener(0.2, types.ETReal), 3986 }, 3987 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3988 chunkSize: 128, 3989 }, 3990 { 3991 retEvalType: types.ETDatetime, 3992 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 3993 geners: []dataGenerator{ 3994 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 3995 newDefaultGener(0.2, types.ETReal), 3996 }, 3997 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 3998 chunkSize: 128, 3999 }, 4000 { 4001 retEvalType: types.ETDatetime, 4002 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4003 geners: []dataGenerator{ 4004 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4005 newDefaultGener(0.2, types.ETReal), 4006 }, 4007 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4008 chunkSize: 128, 4009 }, 4010 { 4011 retEvalType: types.ETDatetime, 4012 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4013 geners: []dataGenerator{ 4014 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4015 newDefaultGener(0.2, types.ETReal), 4016 }, 4017 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4018 chunkSize: 128, 4019 }, 4020 { 4021 retEvalType: types.ETDatetime, 4022 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4023 geners: []dataGenerator{ 4024 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4025 newDefaultGener(0.2, types.ETReal), 4026 }, 4027 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4028 chunkSize: 128, 4029 }, 4030 { 4031 retEvalType: types.ETDatetime, 4032 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4033 geners: []dataGenerator{ 4034 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4035 newDefaultGener(0.2, types.ETReal), 4036 }, 4037 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4038 chunkSize: 128, 4039 }, 4040 { 4041 retEvalType: types.ETDatetime, 4042 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4043 geners: []dataGenerator{ 4044 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4045 newDefaultGener(0.2, types.ETReal), 4046 }, 4047 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4048 chunkSize: 128, 4049 }, 4050 { 4051 retEvalType: types.ETDatetime, 4052 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4053 geners: []dataGenerator{ 4054 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4055 newDefaultGener(0.2, types.ETReal), 4056 }, 4057 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4058 chunkSize: 128, 4059 }, 4060 { 4061 retEvalType: types.ETDatetime, 4062 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4063 geners: []dataGenerator{ 4064 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4065 newDefaultGener(0.2, types.ETReal), 4066 }, 4067 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4068 chunkSize: 128, 4069 }, 4070 { 4071 retEvalType: types.ETDatetime, 4072 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4073 geners: []dataGenerator{ 4074 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4075 newDefaultGener(0.2, types.ETReal), 4076 }, 4077 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4078 chunkSize: 128, 4079 }, 4080 { 4081 retEvalType: types.ETDatetime, 4082 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4083 geners: []dataGenerator{ 4084 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4085 newDefaultGener(0.2, types.ETReal), 4086 }, 4087 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4088 chunkSize: 128, 4089 }, 4090 { 4091 retEvalType: types.ETDatetime, 4092 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4093 geners: []dataGenerator{ 4094 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4095 newDefaultGener(0.2, types.ETReal), 4096 }, 4097 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4098 chunkSize: 128, 4099 }, 4100 { 4101 retEvalType: types.ETDatetime, 4102 childrenTypes: []types.EvalType{types.ETString, types.ETReal, types.ETString}, 4103 geners: []dataGenerator{ 4104 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4105 newDefaultGener(0.2, types.ETReal), 4106 }, 4107 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4108 chunkSize: 128, 4109 }, 4110 // builtinSubDateStringDecimalSig 4111 { 4112 retEvalType: types.ETDatetime, 4113 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4114 geners: []dataGenerator{ 4115 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4116 newDefaultGener(0.2, types.ETDecimal), 4117 }, 4118 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4119 chunkSize: 128, 4120 }, 4121 { 4122 retEvalType: types.ETDatetime, 4123 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4124 geners: []dataGenerator{ 4125 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4126 newDefaultGener(0.2, types.ETDecimal), 4127 }, 4128 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4129 chunkSize: 128, 4130 }, 4131 { 4132 retEvalType: types.ETDatetime, 4133 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4134 geners: []dataGenerator{ 4135 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4136 newDefaultGener(0.2, types.ETDecimal), 4137 }, 4138 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4139 chunkSize: 128, 4140 }, 4141 { 4142 retEvalType: types.ETDatetime, 4143 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4144 geners: []dataGenerator{ 4145 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4146 newDefaultGener(0.2, types.ETDecimal), 4147 }, 4148 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4149 chunkSize: 128, 4150 }, 4151 { 4152 retEvalType: types.ETDatetime, 4153 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4154 geners: []dataGenerator{ 4155 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4156 newDefaultGener(0.2, types.ETDecimal), 4157 }, 4158 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4159 chunkSize: 128, 4160 }, 4161 { 4162 retEvalType: types.ETDatetime, 4163 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4164 geners: []dataGenerator{ 4165 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4166 newDefaultGener(0.2, types.ETDecimal), 4167 }, 4168 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4169 chunkSize: 128, 4170 }, 4171 { 4172 retEvalType: types.ETDatetime, 4173 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4174 geners: []dataGenerator{ 4175 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4176 newDefaultGener(0.2, types.ETDecimal), 4177 }, 4178 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4179 chunkSize: 128, 4180 }, 4181 { 4182 retEvalType: types.ETDatetime, 4183 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4184 geners: []dataGenerator{ 4185 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4186 newDefaultGener(0.2, types.ETDecimal), 4187 }, 4188 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4189 chunkSize: 128, 4190 }, 4191 { 4192 retEvalType: types.ETDatetime, 4193 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4194 geners: []dataGenerator{ 4195 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4196 newDefaultGener(0.2, types.ETDecimal), 4197 }, 4198 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4199 chunkSize: 128, 4200 }, 4201 { 4202 retEvalType: types.ETDatetime, 4203 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4204 geners: []dataGenerator{ 4205 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4206 newDefaultGener(0.2, types.ETDecimal), 4207 }, 4208 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4209 chunkSize: 128, 4210 }, 4211 { 4212 retEvalType: types.ETDatetime, 4213 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4214 geners: []dataGenerator{ 4215 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4216 newDefaultGener(0.2, types.ETDecimal), 4217 }, 4218 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4219 chunkSize: 128, 4220 }, 4221 { 4222 retEvalType: types.ETDatetime, 4223 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4224 geners: []dataGenerator{ 4225 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4226 newDefaultGener(0.2, types.ETDecimal), 4227 }, 4228 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4229 chunkSize: 128, 4230 }, 4231 { 4232 retEvalType: types.ETDatetime, 4233 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4234 geners: []dataGenerator{ 4235 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4236 newDefaultGener(0.2, types.ETDecimal), 4237 }, 4238 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4239 chunkSize: 128, 4240 }, 4241 { 4242 retEvalType: types.ETDatetime, 4243 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4244 geners: []dataGenerator{ 4245 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4246 newDefaultGener(0.2, types.ETDecimal), 4247 }, 4248 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4249 chunkSize: 128, 4250 }, 4251 { 4252 retEvalType: types.ETDatetime, 4253 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4254 geners: []dataGenerator{ 4255 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4256 newDefaultGener(0.2, types.ETDecimal), 4257 }, 4258 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4259 chunkSize: 128, 4260 }, 4261 { 4262 retEvalType: types.ETDatetime, 4263 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4264 geners: []dataGenerator{ 4265 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4266 newDefaultGener(0.2, types.ETDecimal), 4267 }, 4268 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4269 chunkSize: 128, 4270 }, 4271 { 4272 retEvalType: types.ETDatetime, 4273 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4274 geners: []dataGenerator{ 4275 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4276 newDefaultGener(0.2, types.ETDecimal), 4277 }, 4278 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4279 chunkSize: 128, 4280 }, 4281 { 4282 retEvalType: types.ETDatetime, 4283 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4284 geners: []dataGenerator{ 4285 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4286 newDefaultGener(0.2, types.ETDecimal), 4287 }, 4288 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4289 chunkSize: 128, 4290 }, 4291 { 4292 retEvalType: types.ETDatetime, 4293 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4294 geners: []dataGenerator{ 4295 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4296 newDefaultGener(0.2, types.ETDecimal), 4297 }, 4298 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4299 chunkSize: 128, 4300 }, 4301 { 4302 retEvalType: types.ETDatetime, 4303 childrenTypes: []types.EvalType{types.ETString, types.ETDecimal, types.ETString}, 4304 geners: []dataGenerator{ 4305 &dateStrGener{NullRation: 0.2, randGen: newDefaultRandGen()}, 4306 newDefaultGener(0.2, types.ETDecimal), 4307 }, 4308 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4309 chunkSize: 128, 4310 }, 4311 // builtinSubDateIntStringSig 4312 { 4313 retEvalType: types.ETDatetime, 4314 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4315 geners: []dataGenerator{ 4316 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4317 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4318 }, 4319 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4320 chunkSize: 128, 4321 }, 4322 { 4323 retEvalType: types.ETDatetime, 4324 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4325 geners: []dataGenerator{ 4326 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4327 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4328 }, 4329 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4330 chunkSize: 128, 4331 }, 4332 { 4333 retEvalType: types.ETDatetime, 4334 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4335 geners: []dataGenerator{ 4336 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4337 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4338 }, 4339 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4340 chunkSize: 128, 4341 }, 4342 { 4343 retEvalType: types.ETDatetime, 4344 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4345 geners: []dataGenerator{ 4346 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4347 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4348 }, 4349 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4350 chunkSize: 128, 4351 }, 4352 { 4353 retEvalType: types.ETDatetime, 4354 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4355 geners: []dataGenerator{ 4356 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4357 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4358 }, 4359 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4360 chunkSize: 128, 4361 }, 4362 { 4363 retEvalType: types.ETDatetime, 4364 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4365 geners: []dataGenerator{ 4366 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4367 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4368 }, 4369 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4370 chunkSize: 128, 4371 }, 4372 { 4373 retEvalType: types.ETDatetime, 4374 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4375 geners: []dataGenerator{ 4376 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4377 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4378 }, 4379 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4380 chunkSize: 128, 4381 }, 4382 { 4383 retEvalType: types.ETDatetime, 4384 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4385 geners: []dataGenerator{ 4386 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4387 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4388 }, 4389 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4390 chunkSize: 128, 4391 }, 4392 { 4393 retEvalType: types.ETDatetime, 4394 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4395 geners: []dataGenerator{ 4396 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4397 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4398 }, 4399 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4400 chunkSize: 128, 4401 }, 4402 { 4403 retEvalType: types.ETDatetime, 4404 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4405 geners: []dataGenerator{ 4406 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4407 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4408 }, 4409 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4410 chunkSize: 128, 4411 }, 4412 { 4413 retEvalType: types.ETDatetime, 4414 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4415 geners: []dataGenerator{ 4416 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4417 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4418 }, 4419 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4420 chunkSize: 128, 4421 }, 4422 { 4423 retEvalType: types.ETDatetime, 4424 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4425 geners: []dataGenerator{ 4426 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4427 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4428 }, 4429 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4430 chunkSize: 128, 4431 }, 4432 { 4433 retEvalType: types.ETDatetime, 4434 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4435 geners: []dataGenerator{ 4436 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4437 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4438 }, 4439 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4440 chunkSize: 128, 4441 }, 4442 { 4443 retEvalType: types.ETDatetime, 4444 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4445 geners: []dataGenerator{ 4446 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4447 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4448 }, 4449 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4450 chunkSize: 128, 4451 }, 4452 { 4453 retEvalType: types.ETDatetime, 4454 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4455 geners: []dataGenerator{ 4456 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4457 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4458 }, 4459 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4460 chunkSize: 128, 4461 }, 4462 { 4463 retEvalType: types.ETDatetime, 4464 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4465 geners: []dataGenerator{ 4466 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4467 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4468 }, 4469 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4470 chunkSize: 128, 4471 }, 4472 { 4473 retEvalType: types.ETDatetime, 4474 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4475 geners: []dataGenerator{ 4476 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4477 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4478 }, 4479 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4480 chunkSize: 128, 4481 }, 4482 { 4483 retEvalType: types.ETDatetime, 4484 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4485 geners: []dataGenerator{ 4486 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4487 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4488 }, 4489 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4490 chunkSize: 128, 4491 }, 4492 { 4493 retEvalType: types.ETDatetime, 4494 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4495 geners: []dataGenerator{ 4496 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4497 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4498 }, 4499 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4500 chunkSize: 128, 4501 }, 4502 { 4503 retEvalType: types.ETDatetime, 4504 childrenTypes: []types.EvalType{types.ETInt, types.ETString, types.ETString}, 4505 geners: []dataGenerator{ 4506 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4507 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 4508 }, 4509 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4510 chunkSize: 128, 4511 }, 4512 // builtinSubDateIntIntSig 4513 { 4514 retEvalType: types.ETDatetime, 4515 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4516 geners: []dataGenerator{ 4517 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4518 newDefaultGener(0.2, types.ETInt), 4519 }, 4520 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4521 chunkSize: 128, 4522 }, 4523 { 4524 retEvalType: types.ETDatetime, 4525 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4526 geners: []dataGenerator{ 4527 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4528 newDefaultGener(0.2, types.ETInt), 4529 }, 4530 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4531 chunkSize: 128, 4532 }, 4533 { 4534 retEvalType: types.ETDatetime, 4535 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4536 geners: []dataGenerator{ 4537 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4538 newDefaultGener(0.2, types.ETInt), 4539 }, 4540 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4541 chunkSize: 128, 4542 }, 4543 { 4544 retEvalType: types.ETDatetime, 4545 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4546 geners: []dataGenerator{ 4547 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4548 newDefaultGener(0.2, types.ETInt), 4549 }, 4550 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4551 chunkSize: 128, 4552 }, 4553 { 4554 retEvalType: types.ETDatetime, 4555 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4556 geners: []dataGenerator{ 4557 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4558 newDefaultGener(0.2, types.ETInt), 4559 }, 4560 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4561 chunkSize: 128, 4562 }, 4563 { 4564 retEvalType: types.ETDatetime, 4565 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4566 geners: []dataGenerator{ 4567 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4568 newDefaultGener(0.2, types.ETInt), 4569 }, 4570 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4571 chunkSize: 128, 4572 }, 4573 { 4574 retEvalType: types.ETDatetime, 4575 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4576 geners: []dataGenerator{ 4577 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4578 newDefaultGener(0.2, types.ETInt), 4579 }, 4580 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4581 chunkSize: 128, 4582 }, 4583 { 4584 retEvalType: types.ETDatetime, 4585 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4586 geners: []dataGenerator{ 4587 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4588 newDefaultGener(0.2, types.ETInt), 4589 }, 4590 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4591 chunkSize: 128, 4592 }, 4593 { 4594 retEvalType: types.ETDatetime, 4595 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4596 geners: []dataGenerator{ 4597 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4598 newDefaultGener(0.2, types.ETInt), 4599 }, 4600 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4601 chunkSize: 128, 4602 }, 4603 { 4604 retEvalType: types.ETDatetime, 4605 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4606 geners: []dataGenerator{ 4607 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4608 newDefaultGener(0.2, types.ETInt), 4609 }, 4610 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4611 chunkSize: 128, 4612 }, 4613 { 4614 retEvalType: types.ETDatetime, 4615 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4616 geners: []dataGenerator{ 4617 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4618 newDefaultGener(0.2, types.ETInt), 4619 }, 4620 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4621 chunkSize: 128, 4622 }, 4623 { 4624 retEvalType: types.ETDatetime, 4625 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4626 geners: []dataGenerator{ 4627 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4628 newDefaultGener(0.2, types.ETInt), 4629 }, 4630 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4631 chunkSize: 128, 4632 }, 4633 { 4634 retEvalType: types.ETDatetime, 4635 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4636 geners: []dataGenerator{ 4637 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4638 newDefaultGener(0.2, types.ETInt), 4639 }, 4640 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4641 chunkSize: 128, 4642 }, 4643 { 4644 retEvalType: types.ETDatetime, 4645 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4646 geners: []dataGenerator{ 4647 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4648 newDefaultGener(0.2, types.ETInt), 4649 }, 4650 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4651 chunkSize: 128, 4652 }, 4653 { 4654 retEvalType: types.ETDatetime, 4655 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4656 geners: []dataGenerator{ 4657 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4658 newDefaultGener(0.2, types.ETInt), 4659 }, 4660 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4661 chunkSize: 128, 4662 }, 4663 { 4664 retEvalType: types.ETDatetime, 4665 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4666 geners: []dataGenerator{ 4667 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4668 newDefaultGener(0.2, types.ETInt), 4669 }, 4670 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4671 chunkSize: 128, 4672 }, 4673 { 4674 retEvalType: types.ETDatetime, 4675 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4676 geners: []dataGenerator{ 4677 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4678 newDefaultGener(0.2, types.ETInt), 4679 }, 4680 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4681 chunkSize: 128, 4682 }, 4683 { 4684 retEvalType: types.ETDatetime, 4685 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4686 geners: []dataGenerator{ 4687 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4688 newDefaultGener(0.2, types.ETInt), 4689 }, 4690 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4691 chunkSize: 128, 4692 }, 4693 { 4694 retEvalType: types.ETDatetime, 4695 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4696 geners: []dataGenerator{ 4697 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4698 newDefaultGener(0.2, types.ETInt), 4699 }, 4700 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4701 chunkSize: 128, 4702 }, 4703 { 4704 retEvalType: types.ETDatetime, 4705 childrenTypes: []types.EvalType{types.ETInt, types.ETInt, types.ETString}, 4706 geners: []dataGenerator{ 4707 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4708 newDefaultGener(0.2, types.ETInt), 4709 }, 4710 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4711 chunkSize: 128, 4712 }, 4713 // builtinSubDateIntRealSig 4714 { 4715 retEvalType: types.ETDatetime, 4716 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4717 geners: []dataGenerator{ 4718 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4719 newDefaultGener(0.2, types.ETReal), 4720 }, 4721 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4722 chunkSize: 128, 4723 }, 4724 { 4725 retEvalType: types.ETDatetime, 4726 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4727 geners: []dataGenerator{ 4728 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4729 newDefaultGener(0.2, types.ETReal), 4730 }, 4731 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4732 chunkSize: 128, 4733 }, 4734 { 4735 retEvalType: types.ETDatetime, 4736 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4737 geners: []dataGenerator{ 4738 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4739 newDefaultGener(0.2, types.ETReal), 4740 }, 4741 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4742 chunkSize: 128, 4743 }, 4744 { 4745 retEvalType: types.ETDatetime, 4746 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4747 geners: []dataGenerator{ 4748 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4749 newDefaultGener(0.2, types.ETReal), 4750 }, 4751 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4752 chunkSize: 128, 4753 }, 4754 { 4755 retEvalType: types.ETDatetime, 4756 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4757 geners: []dataGenerator{ 4758 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4759 newDefaultGener(0.2, types.ETReal), 4760 }, 4761 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4762 chunkSize: 128, 4763 }, 4764 { 4765 retEvalType: types.ETDatetime, 4766 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4767 geners: []dataGenerator{ 4768 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4769 newDefaultGener(0.2, types.ETReal), 4770 }, 4771 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4772 chunkSize: 128, 4773 }, 4774 { 4775 retEvalType: types.ETDatetime, 4776 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4777 geners: []dataGenerator{ 4778 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4779 newDefaultGener(0.2, types.ETReal), 4780 }, 4781 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4782 chunkSize: 128, 4783 }, 4784 { 4785 retEvalType: types.ETDatetime, 4786 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4787 geners: []dataGenerator{ 4788 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4789 newDefaultGener(0.2, types.ETReal), 4790 }, 4791 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4792 chunkSize: 128, 4793 }, 4794 { 4795 retEvalType: types.ETDatetime, 4796 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4797 geners: []dataGenerator{ 4798 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4799 newDefaultGener(0.2, types.ETReal), 4800 }, 4801 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4802 chunkSize: 128, 4803 }, 4804 { 4805 retEvalType: types.ETDatetime, 4806 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4807 geners: []dataGenerator{ 4808 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4809 newDefaultGener(0.2, types.ETReal), 4810 }, 4811 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4812 chunkSize: 128, 4813 }, 4814 { 4815 retEvalType: types.ETDatetime, 4816 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4817 geners: []dataGenerator{ 4818 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4819 newDefaultGener(0.2, types.ETReal), 4820 }, 4821 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4822 chunkSize: 128, 4823 }, 4824 { 4825 retEvalType: types.ETDatetime, 4826 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4827 geners: []dataGenerator{ 4828 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4829 newDefaultGener(0.2, types.ETReal), 4830 }, 4831 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4832 chunkSize: 128, 4833 }, 4834 { 4835 retEvalType: types.ETDatetime, 4836 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4837 geners: []dataGenerator{ 4838 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4839 newDefaultGener(0.2, types.ETReal), 4840 }, 4841 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4842 chunkSize: 128, 4843 }, 4844 { 4845 retEvalType: types.ETDatetime, 4846 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4847 geners: []dataGenerator{ 4848 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4849 newDefaultGener(0.2, types.ETReal), 4850 }, 4851 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4852 chunkSize: 128, 4853 }, 4854 { 4855 retEvalType: types.ETDatetime, 4856 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4857 geners: []dataGenerator{ 4858 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4859 newDefaultGener(0.2, types.ETReal), 4860 }, 4861 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4862 chunkSize: 128, 4863 }, 4864 { 4865 retEvalType: types.ETDatetime, 4866 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4867 geners: []dataGenerator{ 4868 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4869 newDefaultGener(0.2, types.ETReal), 4870 }, 4871 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4872 chunkSize: 128, 4873 }, 4874 { 4875 retEvalType: types.ETDatetime, 4876 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4877 geners: []dataGenerator{ 4878 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4879 newDefaultGener(0.2, types.ETReal), 4880 }, 4881 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4882 chunkSize: 128, 4883 }, 4884 { 4885 retEvalType: types.ETDatetime, 4886 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4887 geners: []dataGenerator{ 4888 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4889 newDefaultGener(0.2, types.ETReal), 4890 }, 4891 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4892 chunkSize: 128, 4893 }, 4894 { 4895 retEvalType: types.ETDatetime, 4896 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4897 geners: []dataGenerator{ 4898 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4899 newDefaultGener(0.2, types.ETReal), 4900 }, 4901 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4902 chunkSize: 128, 4903 }, 4904 { 4905 retEvalType: types.ETDatetime, 4906 childrenTypes: []types.EvalType{types.ETInt, types.ETReal, types.ETString}, 4907 geners: []dataGenerator{ 4908 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4909 newDefaultGener(0.2, types.ETReal), 4910 }, 4911 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4912 chunkSize: 128, 4913 }, 4914 // builtinSubDateIntDecimalSig 4915 { 4916 retEvalType: types.ETDatetime, 4917 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4918 geners: []dataGenerator{ 4919 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4920 newDefaultGener(0.2, types.ETDecimal), 4921 }, 4922 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4923 chunkSize: 128, 4924 }, 4925 { 4926 retEvalType: types.ETDatetime, 4927 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4928 geners: []dataGenerator{ 4929 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4930 newDefaultGener(0.2, types.ETDecimal), 4931 }, 4932 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4933 chunkSize: 128, 4934 }, 4935 { 4936 retEvalType: types.ETDatetime, 4937 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4938 geners: []dataGenerator{ 4939 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4940 newDefaultGener(0.2, types.ETDecimal), 4941 }, 4942 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4943 chunkSize: 128, 4944 }, 4945 { 4946 retEvalType: types.ETDatetime, 4947 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4948 geners: []dataGenerator{ 4949 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4950 newDefaultGener(0.2, types.ETDecimal), 4951 }, 4952 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4953 chunkSize: 128, 4954 }, 4955 { 4956 retEvalType: types.ETDatetime, 4957 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4958 geners: []dataGenerator{ 4959 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4960 newDefaultGener(0.2, types.ETDecimal), 4961 }, 4962 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4963 chunkSize: 128, 4964 }, 4965 { 4966 retEvalType: types.ETDatetime, 4967 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4968 geners: []dataGenerator{ 4969 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4970 newDefaultGener(0.2, types.ETDecimal), 4971 }, 4972 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4973 chunkSize: 128, 4974 }, 4975 { 4976 retEvalType: types.ETDatetime, 4977 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4978 geners: []dataGenerator{ 4979 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4980 newDefaultGener(0.2, types.ETDecimal), 4981 }, 4982 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4983 chunkSize: 128, 4984 }, 4985 { 4986 retEvalType: types.ETDatetime, 4987 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4988 geners: []dataGenerator{ 4989 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 4990 newDefaultGener(0.2, types.ETDecimal), 4991 }, 4992 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 4993 chunkSize: 128, 4994 }, 4995 { 4996 retEvalType: types.ETDatetime, 4997 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 4998 geners: []dataGenerator{ 4999 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5000 newDefaultGener(0.2, types.ETDecimal), 5001 }, 5002 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5003 chunkSize: 128, 5004 }, 5005 { 5006 retEvalType: types.ETDatetime, 5007 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5008 geners: []dataGenerator{ 5009 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5010 newDefaultGener(0.2, types.ETDecimal), 5011 }, 5012 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5013 chunkSize: 128, 5014 }, 5015 { 5016 retEvalType: types.ETDatetime, 5017 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5018 geners: []dataGenerator{ 5019 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5020 newDefaultGener(0.2, types.ETDecimal), 5021 }, 5022 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5023 chunkSize: 128, 5024 }, 5025 { 5026 retEvalType: types.ETDatetime, 5027 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5028 geners: []dataGenerator{ 5029 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5030 newDefaultGener(0.2, types.ETDecimal), 5031 }, 5032 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5033 chunkSize: 128, 5034 }, 5035 { 5036 retEvalType: types.ETDatetime, 5037 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5038 geners: []dataGenerator{ 5039 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5040 newDefaultGener(0.2, types.ETDecimal), 5041 }, 5042 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5043 chunkSize: 128, 5044 }, 5045 { 5046 retEvalType: types.ETDatetime, 5047 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5048 geners: []dataGenerator{ 5049 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5050 newDefaultGener(0.2, types.ETDecimal), 5051 }, 5052 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5053 chunkSize: 128, 5054 }, 5055 { 5056 retEvalType: types.ETDatetime, 5057 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5058 geners: []dataGenerator{ 5059 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5060 newDefaultGener(0.2, types.ETDecimal), 5061 }, 5062 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5063 chunkSize: 128, 5064 }, 5065 { 5066 retEvalType: types.ETDatetime, 5067 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5068 geners: []dataGenerator{ 5069 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5070 newDefaultGener(0.2, types.ETDecimal), 5071 }, 5072 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5073 chunkSize: 128, 5074 }, 5075 { 5076 retEvalType: types.ETDatetime, 5077 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5078 geners: []dataGenerator{ 5079 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5080 newDefaultGener(0.2, types.ETDecimal), 5081 }, 5082 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5083 chunkSize: 128, 5084 }, 5085 { 5086 retEvalType: types.ETDatetime, 5087 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5088 geners: []dataGenerator{ 5089 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5090 newDefaultGener(0.2, types.ETDecimal), 5091 }, 5092 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5093 chunkSize: 128, 5094 }, 5095 { 5096 retEvalType: types.ETDatetime, 5097 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5098 geners: []dataGenerator{ 5099 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5100 newDefaultGener(0.2, types.ETDecimal), 5101 }, 5102 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5103 chunkSize: 128, 5104 }, 5105 { 5106 retEvalType: types.ETDatetime, 5107 childrenTypes: []types.EvalType{types.ETInt, types.ETDecimal, types.ETString}, 5108 geners: []dataGenerator{ 5109 &dateTimeIntGener{dateTimeGener: dateTimeGener{randGen: newDefaultRandGen()}, nullRation: 0.2}, 5110 newDefaultGener(0.2, types.ETDecimal), 5111 }, 5112 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5113 chunkSize: 128, 5114 }, 5115 // builtinSubDateDatetimeStringSig 5116 { 5117 retEvalType: types.ETDatetime, 5118 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5119 geners: []dataGenerator{ 5120 newDefaultGener(0.2, types.ETDatetime), 5121 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5122 }, 5123 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5124 chunkSize: 128, 5125 }, 5126 { 5127 retEvalType: types.ETDatetime, 5128 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5129 geners: []dataGenerator{ 5130 newDefaultGener(0.2, types.ETDatetime), 5131 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5132 }, 5133 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5134 chunkSize: 128, 5135 }, 5136 { 5137 retEvalType: types.ETDatetime, 5138 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5139 geners: []dataGenerator{ 5140 newDefaultGener(0.2, types.ETDatetime), 5141 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5142 }, 5143 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5144 chunkSize: 128, 5145 }, 5146 { 5147 retEvalType: types.ETDatetime, 5148 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5149 geners: []dataGenerator{ 5150 newDefaultGener(0.2, types.ETDatetime), 5151 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5152 }, 5153 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5154 chunkSize: 128, 5155 }, 5156 { 5157 retEvalType: types.ETDatetime, 5158 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5159 geners: []dataGenerator{ 5160 newDefaultGener(0.2, types.ETDatetime), 5161 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5162 }, 5163 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5164 chunkSize: 128, 5165 }, 5166 { 5167 retEvalType: types.ETDatetime, 5168 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5169 geners: []dataGenerator{ 5170 newDefaultGener(0.2, types.ETDatetime), 5171 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5172 }, 5173 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5174 chunkSize: 128, 5175 }, 5176 { 5177 retEvalType: types.ETDatetime, 5178 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5179 geners: []dataGenerator{ 5180 newDefaultGener(0.2, types.ETDatetime), 5181 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5182 }, 5183 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5184 chunkSize: 128, 5185 }, 5186 { 5187 retEvalType: types.ETDatetime, 5188 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5189 geners: []dataGenerator{ 5190 newDefaultGener(0.2, types.ETDatetime), 5191 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5192 }, 5193 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5194 chunkSize: 128, 5195 }, 5196 { 5197 retEvalType: types.ETDatetime, 5198 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5199 geners: []dataGenerator{ 5200 newDefaultGener(0.2, types.ETDatetime), 5201 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5202 }, 5203 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5204 chunkSize: 128, 5205 }, 5206 { 5207 retEvalType: types.ETDatetime, 5208 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5209 geners: []dataGenerator{ 5210 newDefaultGener(0.2, types.ETDatetime), 5211 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5212 }, 5213 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5214 chunkSize: 128, 5215 }, 5216 { 5217 retEvalType: types.ETDatetime, 5218 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5219 geners: []dataGenerator{ 5220 newDefaultGener(0.2, types.ETDatetime), 5221 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5222 }, 5223 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5224 chunkSize: 128, 5225 }, 5226 { 5227 retEvalType: types.ETDatetime, 5228 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5229 geners: []dataGenerator{ 5230 newDefaultGener(0.2, types.ETDatetime), 5231 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5232 }, 5233 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5234 chunkSize: 128, 5235 }, 5236 { 5237 retEvalType: types.ETDatetime, 5238 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5239 geners: []dataGenerator{ 5240 newDefaultGener(0.2, types.ETDatetime), 5241 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5242 }, 5243 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5244 chunkSize: 128, 5245 }, 5246 { 5247 retEvalType: types.ETDatetime, 5248 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5249 geners: []dataGenerator{ 5250 newDefaultGener(0.2, types.ETDatetime), 5251 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5252 }, 5253 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5254 chunkSize: 128, 5255 }, 5256 { 5257 retEvalType: types.ETDatetime, 5258 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5259 geners: []dataGenerator{ 5260 newDefaultGener(0.2, types.ETDatetime), 5261 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5262 }, 5263 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5264 chunkSize: 128, 5265 }, 5266 { 5267 retEvalType: types.ETDatetime, 5268 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5269 geners: []dataGenerator{ 5270 newDefaultGener(0.2, types.ETDatetime), 5271 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5272 }, 5273 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5274 chunkSize: 128, 5275 }, 5276 { 5277 retEvalType: types.ETDatetime, 5278 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5279 geners: []dataGenerator{ 5280 newDefaultGener(0.2, types.ETDatetime), 5281 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5282 }, 5283 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5284 chunkSize: 128, 5285 }, 5286 { 5287 retEvalType: types.ETDatetime, 5288 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5289 geners: []dataGenerator{ 5290 newDefaultGener(0.2, types.ETDatetime), 5291 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5292 }, 5293 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5294 chunkSize: 128, 5295 }, 5296 { 5297 retEvalType: types.ETDatetime, 5298 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5299 geners: []dataGenerator{ 5300 newDefaultGener(0.2, types.ETDatetime), 5301 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5302 }, 5303 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5304 chunkSize: 128, 5305 }, 5306 { 5307 retEvalType: types.ETDatetime, 5308 childrenTypes: []types.EvalType{types.ETDatetime, types.ETString, types.ETString}, 5309 geners: []dataGenerator{ 5310 newDefaultGener(0.2, types.ETDatetime), 5311 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5312 }, 5313 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5314 chunkSize: 128, 5315 }, 5316 // builtinSubDateDatetimeIntSig 5317 { 5318 retEvalType: types.ETDatetime, 5319 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5320 geners: []dataGenerator{ 5321 newDefaultGener(0.2, types.ETDatetime), 5322 newDefaultGener(0.2, types.ETInt), 5323 }, 5324 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5325 chunkSize: 128, 5326 }, 5327 { 5328 retEvalType: types.ETDatetime, 5329 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5330 geners: []dataGenerator{ 5331 newDefaultGener(0.2, types.ETDatetime), 5332 newDefaultGener(0.2, types.ETInt), 5333 }, 5334 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5335 chunkSize: 128, 5336 }, 5337 { 5338 retEvalType: types.ETDatetime, 5339 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5340 geners: []dataGenerator{ 5341 newDefaultGener(0.2, types.ETDatetime), 5342 newDefaultGener(0.2, types.ETInt), 5343 }, 5344 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5345 chunkSize: 128, 5346 }, 5347 { 5348 retEvalType: types.ETDatetime, 5349 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5350 geners: []dataGenerator{ 5351 newDefaultGener(0.2, types.ETDatetime), 5352 newDefaultGener(0.2, types.ETInt), 5353 }, 5354 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5355 chunkSize: 128, 5356 }, 5357 { 5358 retEvalType: types.ETDatetime, 5359 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5360 geners: []dataGenerator{ 5361 newDefaultGener(0.2, types.ETDatetime), 5362 newDefaultGener(0.2, types.ETInt), 5363 }, 5364 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5365 chunkSize: 128, 5366 }, 5367 { 5368 retEvalType: types.ETDatetime, 5369 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5370 geners: []dataGenerator{ 5371 newDefaultGener(0.2, types.ETDatetime), 5372 newDefaultGener(0.2, types.ETInt), 5373 }, 5374 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5375 chunkSize: 128, 5376 }, 5377 { 5378 retEvalType: types.ETDatetime, 5379 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5380 geners: []dataGenerator{ 5381 newDefaultGener(0.2, types.ETDatetime), 5382 newDefaultGener(0.2, types.ETInt), 5383 }, 5384 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5385 chunkSize: 128, 5386 }, 5387 { 5388 retEvalType: types.ETDatetime, 5389 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5390 geners: []dataGenerator{ 5391 newDefaultGener(0.2, types.ETDatetime), 5392 newDefaultGener(0.2, types.ETInt), 5393 }, 5394 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5395 chunkSize: 128, 5396 }, 5397 { 5398 retEvalType: types.ETDatetime, 5399 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5400 geners: []dataGenerator{ 5401 newDefaultGener(0.2, types.ETDatetime), 5402 newDefaultGener(0.2, types.ETInt), 5403 }, 5404 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5405 chunkSize: 128, 5406 }, 5407 { 5408 retEvalType: types.ETDatetime, 5409 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5410 geners: []dataGenerator{ 5411 newDefaultGener(0.2, types.ETDatetime), 5412 newDefaultGener(0.2, types.ETInt), 5413 }, 5414 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5415 chunkSize: 128, 5416 }, 5417 { 5418 retEvalType: types.ETDatetime, 5419 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5420 geners: []dataGenerator{ 5421 newDefaultGener(0.2, types.ETDatetime), 5422 newDefaultGener(0.2, types.ETInt), 5423 }, 5424 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5425 chunkSize: 128, 5426 }, 5427 { 5428 retEvalType: types.ETDatetime, 5429 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5430 geners: []dataGenerator{ 5431 newDefaultGener(0.2, types.ETDatetime), 5432 newDefaultGener(0.2, types.ETInt), 5433 }, 5434 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5435 chunkSize: 128, 5436 }, 5437 { 5438 retEvalType: types.ETDatetime, 5439 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5440 geners: []dataGenerator{ 5441 newDefaultGener(0.2, types.ETDatetime), 5442 newDefaultGener(0.2, types.ETInt), 5443 }, 5444 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5445 chunkSize: 128, 5446 }, 5447 { 5448 retEvalType: types.ETDatetime, 5449 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5450 geners: []dataGenerator{ 5451 newDefaultGener(0.2, types.ETDatetime), 5452 newDefaultGener(0.2, types.ETInt), 5453 }, 5454 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5455 chunkSize: 128, 5456 }, 5457 { 5458 retEvalType: types.ETDatetime, 5459 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5460 geners: []dataGenerator{ 5461 newDefaultGener(0.2, types.ETDatetime), 5462 newDefaultGener(0.2, types.ETInt), 5463 }, 5464 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5465 chunkSize: 128, 5466 }, 5467 { 5468 retEvalType: types.ETDatetime, 5469 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5470 geners: []dataGenerator{ 5471 newDefaultGener(0.2, types.ETDatetime), 5472 newDefaultGener(0.2, types.ETInt), 5473 }, 5474 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5475 chunkSize: 128, 5476 }, 5477 { 5478 retEvalType: types.ETDatetime, 5479 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5480 geners: []dataGenerator{ 5481 newDefaultGener(0.2, types.ETDatetime), 5482 newDefaultGener(0.2, types.ETInt), 5483 }, 5484 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5485 chunkSize: 128, 5486 }, 5487 { 5488 retEvalType: types.ETDatetime, 5489 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5490 geners: []dataGenerator{ 5491 newDefaultGener(0.2, types.ETDatetime), 5492 newDefaultGener(0.2, types.ETInt), 5493 }, 5494 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5495 chunkSize: 128, 5496 }, 5497 { 5498 retEvalType: types.ETDatetime, 5499 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5500 geners: []dataGenerator{ 5501 newDefaultGener(0.2, types.ETDatetime), 5502 newDefaultGener(0.2, types.ETInt), 5503 }, 5504 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5505 chunkSize: 128, 5506 }, 5507 { 5508 retEvalType: types.ETDatetime, 5509 childrenTypes: []types.EvalType{types.ETDatetime, types.ETInt, types.ETString}, 5510 geners: []dataGenerator{ 5511 newDefaultGener(0.2, types.ETDatetime), 5512 newDefaultGener(0.2, types.ETInt), 5513 }, 5514 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5515 chunkSize: 128, 5516 }, 5517 // builtinSubDateDatetimeRealSig 5518 { 5519 retEvalType: types.ETDatetime, 5520 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5521 geners: []dataGenerator{ 5522 newDefaultGener(0.2, types.ETDatetime), 5523 newDefaultGener(0.2, types.ETReal), 5524 }, 5525 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5526 chunkSize: 128, 5527 }, 5528 { 5529 retEvalType: types.ETDatetime, 5530 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5531 geners: []dataGenerator{ 5532 newDefaultGener(0.2, types.ETDatetime), 5533 newDefaultGener(0.2, types.ETReal), 5534 }, 5535 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5536 chunkSize: 128, 5537 }, 5538 { 5539 retEvalType: types.ETDatetime, 5540 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5541 geners: []dataGenerator{ 5542 newDefaultGener(0.2, types.ETDatetime), 5543 newDefaultGener(0.2, types.ETReal), 5544 }, 5545 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5546 chunkSize: 128, 5547 }, 5548 { 5549 retEvalType: types.ETDatetime, 5550 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5551 geners: []dataGenerator{ 5552 newDefaultGener(0.2, types.ETDatetime), 5553 newDefaultGener(0.2, types.ETReal), 5554 }, 5555 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5556 chunkSize: 128, 5557 }, 5558 { 5559 retEvalType: types.ETDatetime, 5560 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5561 geners: []dataGenerator{ 5562 newDefaultGener(0.2, types.ETDatetime), 5563 newDefaultGener(0.2, types.ETReal), 5564 }, 5565 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5566 chunkSize: 128, 5567 }, 5568 { 5569 retEvalType: types.ETDatetime, 5570 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5571 geners: []dataGenerator{ 5572 newDefaultGener(0.2, types.ETDatetime), 5573 newDefaultGener(0.2, types.ETReal), 5574 }, 5575 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5576 chunkSize: 128, 5577 }, 5578 { 5579 retEvalType: types.ETDatetime, 5580 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5581 geners: []dataGenerator{ 5582 newDefaultGener(0.2, types.ETDatetime), 5583 newDefaultGener(0.2, types.ETReal), 5584 }, 5585 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5586 chunkSize: 128, 5587 }, 5588 { 5589 retEvalType: types.ETDatetime, 5590 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5591 geners: []dataGenerator{ 5592 newDefaultGener(0.2, types.ETDatetime), 5593 newDefaultGener(0.2, types.ETReal), 5594 }, 5595 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5596 chunkSize: 128, 5597 }, 5598 { 5599 retEvalType: types.ETDatetime, 5600 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5601 geners: []dataGenerator{ 5602 newDefaultGener(0.2, types.ETDatetime), 5603 newDefaultGener(0.2, types.ETReal), 5604 }, 5605 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5606 chunkSize: 128, 5607 }, 5608 { 5609 retEvalType: types.ETDatetime, 5610 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5611 geners: []dataGenerator{ 5612 newDefaultGener(0.2, types.ETDatetime), 5613 newDefaultGener(0.2, types.ETReal), 5614 }, 5615 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5616 chunkSize: 128, 5617 }, 5618 { 5619 retEvalType: types.ETDatetime, 5620 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5621 geners: []dataGenerator{ 5622 newDefaultGener(0.2, types.ETDatetime), 5623 newDefaultGener(0.2, types.ETReal), 5624 }, 5625 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5626 chunkSize: 128, 5627 }, 5628 { 5629 retEvalType: types.ETDatetime, 5630 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5631 geners: []dataGenerator{ 5632 newDefaultGener(0.2, types.ETDatetime), 5633 newDefaultGener(0.2, types.ETReal), 5634 }, 5635 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5636 chunkSize: 128, 5637 }, 5638 { 5639 retEvalType: types.ETDatetime, 5640 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5641 geners: []dataGenerator{ 5642 newDefaultGener(0.2, types.ETDatetime), 5643 newDefaultGener(0.2, types.ETReal), 5644 }, 5645 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5646 chunkSize: 128, 5647 }, 5648 { 5649 retEvalType: types.ETDatetime, 5650 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5651 geners: []dataGenerator{ 5652 newDefaultGener(0.2, types.ETDatetime), 5653 newDefaultGener(0.2, types.ETReal), 5654 }, 5655 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5656 chunkSize: 128, 5657 }, 5658 { 5659 retEvalType: types.ETDatetime, 5660 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5661 geners: []dataGenerator{ 5662 newDefaultGener(0.2, types.ETDatetime), 5663 newDefaultGener(0.2, types.ETReal), 5664 }, 5665 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5666 chunkSize: 128, 5667 }, 5668 { 5669 retEvalType: types.ETDatetime, 5670 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5671 geners: []dataGenerator{ 5672 newDefaultGener(0.2, types.ETDatetime), 5673 newDefaultGener(0.2, types.ETReal), 5674 }, 5675 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5676 chunkSize: 128, 5677 }, 5678 { 5679 retEvalType: types.ETDatetime, 5680 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5681 geners: []dataGenerator{ 5682 newDefaultGener(0.2, types.ETDatetime), 5683 newDefaultGener(0.2, types.ETReal), 5684 }, 5685 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5686 chunkSize: 128, 5687 }, 5688 { 5689 retEvalType: types.ETDatetime, 5690 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5691 geners: []dataGenerator{ 5692 newDefaultGener(0.2, types.ETDatetime), 5693 newDefaultGener(0.2, types.ETReal), 5694 }, 5695 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5696 chunkSize: 128, 5697 }, 5698 { 5699 retEvalType: types.ETDatetime, 5700 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5701 geners: []dataGenerator{ 5702 newDefaultGener(0.2, types.ETDatetime), 5703 newDefaultGener(0.2, types.ETReal), 5704 }, 5705 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5706 chunkSize: 128, 5707 }, 5708 { 5709 retEvalType: types.ETDatetime, 5710 childrenTypes: []types.EvalType{types.ETDatetime, types.ETReal, types.ETString}, 5711 geners: []dataGenerator{ 5712 newDefaultGener(0.2, types.ETDatetime), 5713 newDefaultGener(0.2, types.ETReal), 5714 }, 5715 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5716 chunkSize: 128, 5717 }, 5718 // builtinSubDateDatetimeDecimalSig 5719 { 5720 retEvalType: types.ETDatetime, 5721 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5722 geners: []dataGenerator{ 5723 newDefaultGener(0.2, types.ETDatetime), 5724 newDefaultGener(0.2, types.ETDecimal), 5725 }, 5726 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5727 chunkSize: 128, 5728 }, 5729 { 5730 retEvalType: types.ETDatetime, 5731 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5732 geners: []dataGenerator{ 5733 newDefaultGener(0.2, types.ETDatetime), 5734 newDefaultGener(0.2, types.ETDecimal), 5735 }, 5736 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5737 chunkSize: 128, 5738 }, 5739 { 5740 retEvalType: types.ETDatetime, 5741 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5742 geners: []dataGenerator{ 5743 newDefaultGener(0.2, types.ETDatetime), 5744 newDefaultGener(0.2, types.ETDecimal), 5745 }, 5746 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5747 chunkSize: 128, 5748 }, 5749 { 5750 retEvalType: types.ETDatetime, 5751 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5752 geners: []dataGenerator{ 5753 newDefaultGener(0.2, types.ETDatetime), 5754 newDefaultGener(0.2, types.ETDecimal), 5755 }, 5756 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5757 chunkSize: 128, 5758 }, 5759 { 5760 retEvalType: types.ETDatetime, 5761 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5762 geners: []dataGenerator{ 5763 newDefaultGener(0.2, types.ETDatetime), 5764 newDefaultGener(0.2, types.ETDecimal), 5765 }, 5766 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5767 chunkSize: 128, 5768 }, 5769 { 5770 retEvalType: types.ETDatetime, 5771 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5772 geners: []dataGenerator{ 5773 newDefaultGener(0.2, types.ETDatetime), 5774 newDefaultGener(0.2, types.ETDecimal), 5775 }, 5776 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5777 chunkSize: 128, 5778 }, 5779 { 5780 retEvalType: types.ETDatetime, 5781 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5782 geners: []dataGenerator{ 5783 newDefaultGener(0.2, types.ETDatetime), 5784 newDefaultGener(0.2, types.ETDecimal), 5785 }, 5786 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5787 chunkSize: 128, 5788 }, 5789 { 5790 retEvalType: types.ETDatetime, 5791 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5792 geners: []dataGenerator{ 5793 newDefaultGener(0.2, types.ETDatetime), 5794 newDefaultGener(0.2, types.ETDecimal), 5795 }, 5796 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5797 chunkSize: 128, 5798 }, 5799 { 5800 retEvalType: types.ETDatetime, 5801 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5802 geners: []dataGenerator{ 5803 newDefaultGener(0.2, types.ETDatetime), 5804 newDefaultGener(0.2, types.ETDecimal), 5805 }, 5806 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5807 chunkSize: 128, 5808 }, 5809 { 5810 retEvalType: types.ETDatetime, 5811 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5812 geners: []dataGenerator{ 5813 newDefaultGener(0.2, types.ETDatetime), 5814 newDefaultGener(0.2, types.ETDecimal), 5815 }, 5816 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5817 chunkSize: 128, 5818 }, 5819 { 5820 retEvalType: types.ETDatetime, 5821 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5822 geners: []dataGenerator{ 5823 newDefaultGener(0.2, types.ETDatetime), 5824 newDefaultGener(0.2, types.ETDecimal), 5825 }, 5826 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5827 chunkSize: 128, 5828 }, 5829 { 5830 retEvalType: types.ETDatetime, 5831 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5832 geners: []dataGenerator{ 5833 newDefaultGener(0.2, types.ETDatetime), 5834 newDefaultGener(0.2, types.ETDecimal), 5835 }, 5836 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5837 chunkSize: 128, 5838 }, 5839 { 5840 retEvalType: types.ETDatetime, 5841 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5842 geners: []dataGenerator{ 5843 newDefaultGener(0.2, types.ETDatetime), 5844 newDefaultGener(0.2, types.ETDecimal), 5845 }, 5846 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5847 chunkSize: 128, 5848 }, 5849 { 5850 retEvalType: types.ETDatetime, 5851 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5852 geners: []dataGenerator{ 5853 newDefaultGener(0.2, types.ETDatetime), 5854 newDefaultGener(0.2, types.ETDecimal), 5855 }, 5856 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5857 chunkSize: 128, 5858 }, 5859 { 5860 retEvalType: types.ETDatetime, 5861 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5862 geners: []dataGenerator{ 5863 newDefaultGener(0.2, types.ETDatetime), 5864 newDefaultGener(0.2, types.ETDecimal), 5865 }, 5866 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5867 chunkSize: 128, 5868 }, 5869 { 5870 retEvalType: types.ETDatetime, 5871 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5872 geners: []dataGenerator{ 5873 newDefaultGener(0.2, types.ETDatetime), 5874 newDefaultGener(0.2, types.ETDecimal), 5875 }, 5876 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5877 chunkSize: 128, 5878 }, 5879 { 5880 retEvalType: types.ETDatetime, 5881 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5882 geners: []dataGenerator{ 5883 newDefaultGener(0.2, types.ETDatetime), 5884 newDefaultGener(0.2, types.ETDecimal), 5885 }, 5886 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5887 chunkSize: 128, 5888 }, 5889 { 5890 retEvalType: types.ETDatetime, 5891 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5892 geners: []dataGenerator{ 5893 newDefaultGener(0.2, types.ETDatetime), 5894 newDefaultGener(0.2, types.ETDecimal), 5895 }, 5896 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5897 chunkSize: 128, 5898 }, 5899 { 5900 retEvalType: types.ETDatetime, 5901 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5902 geners: []dataGenerator{ 5903 newDefaultGener(0.2, types.ETDatetime), 5904 newDefaultGener(0.2, types.ETDecimal), 5905 }, 5906 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5907 chunkSize: 128, 5908 }, 5909 { 5910 retEvalType: types.ETDatetime, 5911 childrenTypes: []types.EvalType{types.ETDatetime, types.ETDecimal, types.ETString}, 5912 geners: []dataGenerator{ 5913 newDefaultGener(0.2, types.ETDatetime), 5914 newDefaultGener(0.2, types.ETDecimal), 5915 }, 5916 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5917 chunkSize: 128, 5918 }, 5919 // builtinSubDateDurationStringSig 5920 { 5921 retEvalType: types.ETDuration, 5922 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5923 geners: []dataGenerator{ 5924 newDefaultGener(0.2, types.ETDuration), 5925 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5926 }, 5927 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5928 chunkSize: 128, 5929 }, 5930 { 5931 retEvalType: types.ETDuration, 5932 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5933 geners: []dataGenerator{ 5934 newDefaultGener(0.2, types.ETDuration), 5935 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5936 }, 5937 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5938 chunkSize: 128, 5939 }, 5940 { 5941 retEvalType: types.ETDuration, 5942 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5943 geners: []dataGenerator{ 5944 newDefaultGener(0.2, types.ETDuration), 5945 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5946 }, 5947 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5948 chunkSize: 128, 5949 }, 5950 { 5951 retEvalType: types.ETDuration, 5952 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5953 geners: []dataGenerator{ 5954 newDefaultGener(0.2, types.ETDuration), 5955 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5956 }, 5957 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5958 chunkSize: 128, 5959 }, 5960 { 5961 retEvalType: types.ETDuration, 5962 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5963 geners: []dataGenerator{ 5964 newDefaultGener(0.2, types.ETDuration), 5965 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5966 }, 5967 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5968 chunkSize: 128, 5969 }, 5970 { 5971 retEvalType: types.ETDuration, 5972 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5973 geners: []dataGenerator{ 5974 newDefaultGener(0.2, types.ETDuration), 5975 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5976 }, 5977 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5978 chunkSize: 128, 5979 }, 5980 { 5981 retEvalType: types.ETDuration, 5982 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5983 geners: []dataGenerator{ 5984 newDefaultGener(0.2, types.ETDuration), 5985 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5986 }, 5987 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5988 chunkSize: 128, 5989 }, 5990 { 5991 retEvalType: types.ETDuration, 5992 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 5993 geners: []dataGenerator{ 5994 newDefaultGener(0.2, types.ETDuration), 5995 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 5996 }, 5997 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 5998 chunkSize: 128, 5999 }, 6000 { 6001 retEvalType: types.ETDuration, 6002 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6003 geners: []dataGenerator{ 6004 newDefaultGener(0.2, types.ETDuration), 6005 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6006 }, 6007 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6008 chunkSize: 128, 6009 }, 6010 { 6011 retEvalType: types.ETDuration, 6012 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6013 geners: []dataGenerator{ 6014 newDefaultGener(0.2, types.ETDuration), 6015 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6016 }, 6017 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6018 chunkSize: 128, 6019 }, 6020 { 6021 retEvalType: types.ETDuration, 6022 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6023 geners: []dataGenerator{ 6024 newDefaultGener(0.2, types.ETDuration), 6025 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6026 }, 6027 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6028 chunkSize: 128, 6029 }, 6030 { 6031 retEvalType: types.ETDuration, 6032 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6033 geners: []dataGenerator{ 6034 newDefaultGener(0.2, types.ETDuration), 6035 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6036 }, 6037 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6038 chunkSize: 128, 6039 }, 6040 { 6041 retEvalType: types.ETDuration, 6042 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6043 geners: []dataGenerator{ 6044 newDefaultGener(0.2, types.ETDuration), 6045 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6046 }, 6047 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6048 chunkSize: 128, 6049 }, 6050 { 6051 retEvalType: types.ETDuration, 6052 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6053 geners: []dataGenerator{ 6054 newDefaultGener(0.2, types.ETDuration), 6055 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6056 }, 6057 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6058 chunkSize: 128, 6059 }, 6060 { 6061 retEvalType: types.ETDuration, 6062 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6063 geners: []dataGenerator{ 6064 newDefaultGener(0.2, types.ETDuration), 6065 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6066 }, 6067 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6068 chunkSize: 128, 6069 }, 6070 { 6071 retEvalType: types.ETDuration, 6072 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6073 geners: []dataGenerator{ 6074 newDefaultGener(0.2, types.ETDuration), 6075 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6076 }, 6077 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6078 chunkSize: 128, 6079 }, 6080 { 6081 retEvalType: types.ETDuration, 6082 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6083 geners: []dataGenerator{ 6084 newDefaultGener(0.2, types.ETDuration), 6085 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6086 }, 6087 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6088 chunkSize: 128, 6089 }, 6090 { 6091 retEvalType: types.ETDuration, 6092 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6093 geners: []dataGenerator{ 6094 newDefaultGener(0.2, types.ETDuration), 6095 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6096 }, 6097 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6098 chunkSize: 128, 6099 }, 6100 { 6101 retEvalType: types.ETDuration, 6102 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6103 geners: []dataGenerator{ 6104 newDefaultGener(0.2, types.ETDuration), 6105 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6106 }, 6107 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6108 chunkSize: 128, 6109 }, 6110 { 6111 retEvalType: types.ETDuration, 6112 childrenTypes: []types.EvalType{types.ETDuration, types.ETString, types.ETString}, 6113 geners: []dataGenerator{ 6114 newDefaultGener(0.2, types.ETDuration), 6115 &numStrGener{rangeInt64Gener{math.MinInt32 + 1, math.MaxInt32, newDefaultRandGen()}}, 6116 }, 6117 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6118 chunkSize: 128, 6119 }, 6120 // builtinSubDateDurationIntSig 6121 { 6122 retEvalType: types.ETDuration, 6123 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6124 geners: []dataGenerator{ 6125 newDefaultGener(0.2, types.ETDuration), 6126 newDefaultGener(0.2, types.ETInt), 6127 }, 6128 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6129 chunkSize: 128, 6130 }, 6131 { 6132 retEvalType: types.ETDuration, 6133 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6134 geners: []dataGenerator{ 6135 newDefaultGener(0.2, types.ETDuration), 6136 newDefaultGener(0.2, types.ETInt), 6137 }, 6138 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6139 chunkSize: 128, 6140 }, 6141 { 6142 retEvalType: types.ETDuration, 6143 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6144 geners: []dataGenerator{ 6145 newDefaultGener(0.2, types.ETDuration), 6146 newDefaultGener(0.2, types.ETInt), 6147 }, 6148 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6149 chunkSize: 128, 6150 }, 6151 { 6152 retEvalType: types.ETDuration, 6153 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6154 geners: []dataGenerator{ 6155 newDefaultGener(0.2, types.ETDuration), 6156 newDefaultGener(0.2, types.ETInt), 6157 }, 6158 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6159 chunkSize: 128, 6160 }, 6161 { 6162 retEvalType: types.ETDuration, 6163 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6164 geners: []dataGenerator{ 6165 newDefaultGener(0.2, types.ETDuration), 6166 newDefaultGener(0.2, types.ETInt), 6167 }, 6168 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6169 chunkSize: 128, 6170 }, 6171 { 6172 retEvalType: types.ETDuration, 6173 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6174 geners: []dataGenerator{ 6175 newDefaultGener(0.2, types.ETDuration), 6176 newDefaultGener(0.2, types.ETInt), 6177 }, 6178 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6179 chunkSize: 128, 6180 }, 6181 { 6182 retEvalType: types.ETDuration, 6183 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6184 geners: []dataGenerator{ 6185 newDefaultGener(0.2, types.ETDuration), 6186 newDefaultGener(0.2, types.ETInt), 6187 }, 6188 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6189 chunkSize: 128, 6190 }, 6191 { 6192 retEvalType: types.ETDuration, 6193 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6194 geners: []dataGenerator{ 6195 newDefaultGener(0.2, types.ETDuration), 6196 newDefaultGener(0.2, types.ETInt), 6197 }, 6198 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6199 chunkSize: 128, 6200 }, 6201 { 6202 retEvalType: types.ETDuration, 6203 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6204 geners: []dataGenerator{ 6205 newDefaultGener(0.2, types.ETDuration), 6206 newDefaultGener(0.2, types.ETInt), 6207 }, 6208 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6209 chunkSize: 128, 6210 }, 6211 { 6212 retEvalType: types.ETDuration, 6213 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6214 geners: []dataGenerator{ 6215 newDefaultGener(0.2, types.ETDuration), 6216 newDefaultGener(0.2, types.ETInt), 6217 }, 6218 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6219 chunkSize: 128, 6220 }, 6221 { 6222 retEvalType: types.ETDuration, 6223 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6224 geners: []dataGenerator{ 6225 newDefaultGener(0.2, types.ETDuration), 6226 newDefaultGener(0.2, types.ETInt), 6227 }, 6228 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6229 chunkSize: 128, 6230 }, 6231 { 6232 retEvalType: types.ETDuration, 6233 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6234 geners: []dataGenerator{ 6235 newDefaultGener(0.2, types.ETDuration), 6236 newDefaultGener(0.2, types.ETInt), 6237 }, 6238 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6239 chunkSize: 128, 6240 }, 6241 { 6242 retEvalType: types.ETDuration, 6243 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6244 geners: []dataGenerator{ 6245 newDefaultGener(0.2, types.ETDuration), 6246 newDefaultGener(0.2, types.ETInt), 6247 }, 6248 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6249 chunkSize: 128, 6250 }, 6251 { 6252 retEvalType: types.ETDuration, 6253 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6254 geners: []dataGenerator{ 6255 newDefaultGener(0.2, types.ETDuration), 6256 newDefaultGener(0.2, types.ETInt), 6257 }, 6258 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6259 chunkSize: 128, 6260 }, 6261 { 6262 retEvalType: types.ETDuration, 6263 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6264 geners: []dataGenerator{ 6265 newDefaultGener(0.2, types.ETDuration), 6266 newDefaultGener(0.2, types.ETInt), 6267 }, 6268 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6269 chunkSize: 128, 6270 }, 6271 { 6272 retEvalType: types.ETDuration, 6273 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6274 geners: []dataGenerator{ 6275 newDefaultGener(0.2, types.ETDuration), 6276 newDefaultGener(0.2, types.ETInt), 6277 }, 6278 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6279 chunkSize: 128, 6280 }, 6281 { 6282 retEvalType: types.ETDuration, 6283 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6284 geners: []dataGenerator{ 6285 newDefaultGener(0.2, types.ETDuration), 6286 newDefaultGener(0.2, types.ETInt), 6287 }, 6288 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6289 chunkSize: 128, 6290 }, 6291 { 6292 retEvalType: types.ETDuration, 6293 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6294 geners: []dataGenerator{ 6295 newDefaultGener(0.2, types.ETDuration), 6296 newDefaultGener(0.2, types.ETInt), 6297 }, 6298 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6299 chunkSize: 128, 6300 }, 6301 { 6302 retEvalType: types.ETDuration, 6303 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6304 geners: []dataGenerator{ 6305 newDefaultGener(0.2, types.ETDuration), 6306 newDefaultGener(0.2, types.ETInt), 6307 }, 6308 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6309 chunkSize: 128, 6310 }, 6311 { 6312 retEvalType: types.ETDuration, 6313 childrenTypes: []types.EvalType{types.ETDuration, types.ETInt, types.ETString}, 6314 geners: []dataGenerator{ 6315 newDefaultGener(0.2, types.ETDuration), 6316 newDefaultGener(0.2, types.ETInt), 6317 }, 6318 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6319 chunkSize: 128, 6320 }, 6321 // builtinSubDateDurationRealSig 6322 { 6323 retEvalType: types.ETDuration, 6324 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6325 geners: []dataGenerator{ 6326 newDefaultGener(0.2, types.ETDuration), 6327 newDefaultGener(0.2, types.ETReal), 6328 }, 6329 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6330 chunkSize: 128, 6331 }, 6332 { 6333 retEvalType: types.ETDuration, 6334 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6335 geners: []dataGenerator{ 6336 newDefaultGener(0.2, types.ETDuration), 6337 newDefaultGener(0.2, types.ETReal), 6338 }, 6339 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6340 chunkSize: 128, 6341 }, 6342 { 6343 retEvalType: types.ETDuration, 6344 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6345 geners: []dataGenerator{ 6346 newDefaultGener(0.2, types.ETDuration), 6347 newDefaultGener(0.2, types.ETReal), 6348 }, 6349 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6350 chunkSize: 128, 6351 }, 6352 { 6353 retEvalType: types.ETDuration, 6354 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6355 geners: []dataGenerator{ 6356 newDefaultGener(0.2, types.ETDuration), 6357 newDefaultGener(0.2, types.ETReal), 6358 }, 6359 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6360 chunkSize: 128, 6361 }, 6362 { 6363 retEvalType: types.ETDuration, 6364 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6365 geners: []dataGenerator{ 6366 newDefaultGener(0.2, types.ETDuration), 6367 newDefaultGener(0.2, types.ETReal), 6368 }, 6369 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6370 chunkSize: 128, 6371 }, 6372 { 6373 retEvalType: types.ETDuration, 6374 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6375 geners: []dataGenerator{ 6376 newDefaultGener(0.2, types.ETDuration), 6377 newDefaultGener(0.2, types.ETReal), 6378 }, 6379 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6380 chunkSize: 128, 6381 }, 6382 { 6383 retEvalType: types.ETDuration, 6384 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6385 geners: []dataGenerator{ 6386 newDefaultGener(0.2, types.ETDuration), 6387 newDefaultGener(0.2, types.ETReal), 6388 }, 6389 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6390 chunkSize: 128, 6391 }, 6392 { 6393 retEvalType: types.ETDuration, 6394 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6395 geners: []dataGenerator{ 6396 newDefaultGener(0.2, types.ETDuration), 6397 newDefaultGener(0.2, types.ETReal), 6398 }, 6399 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6400 chunkSize: 128, 6401 }, 6402 { 6403 retEvalType: types.ETDuration, 6404 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6405 geners: []dataGenerator{ 6406 newDefaultGener(0.2, types.ETDuration), 6407 newDefaultGener(0.2, types.ETReal), 6408 }, 6409 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6410 chunkSize: 128, 6411 }, 6412 { 6413 retEvalType: types.ETDuration, 6414 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6415 geners: []dataGenerator{ 6416 newDefaultGener(0.2, types.ETDuration), 6417 newDefaultGener(0.2, types.ETReal), 6418 }, 6419 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6420 chunkSize: 128, 6421 }, 6422 { 6423 retEvalType: types.ETDuration, 6424 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6425 geners: []dataGenerator{ 6426 newDefaultGener(0.2, types.ETDuration), 6427 newDefaultGener(0.2, types.ETReal), 6428 }, 6429 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6430 chunkSize: 128, 6431 }, 6432 { 6433 retEvalType: types.ETDuration, 6434 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6435 geners: []dataGenerator{ 6436 newDefaultGener(0.2, types.ETDuration), 6437 newDefaultGener(0.2, types.ETReal), 6438 }, 6439 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6440 chunkSize: 128, 6441 }, 6442 { 6443 retEvalType: types.ETDuration, 6444 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6445 geners: []dataGenerator{ 6446 newDefaultGener(0.2, types.ETDuration), 6447 newDefaultGener(0.2, types.ETReal), 6448 }, 6449 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6450 chunkSize: 128, 6451 }, 6452 { 6453 retEvalType: types.ETDuration, 6454 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6455 geners: []dataGenerator{ 6456 newDefaultGener(0.2, types.ETDuration), 6457 newDefaultGener(0.2, types.ETReal), 6458 }, 6459 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6460 chunkSize: 128, 6461 }, 6462 { 6463 retEvalType: types.ETDuration, 6464 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6465 geners: []dataGenerator{ 6466 newDefaultGener(0.2, types.ETDuration), 6467 newDefaultGener(0.2, types.ETReal), 6468 }, 6469 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6470 chunkSize: 128, 6471 }, 6472 { 6473 retEvalType: types.ETDuration, 6474 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6475 geners: []dataGenerator{ 6476 newDefaultGener(0.2, types.ETDuration), 6477 newDefaultGener(0.2, types.ETReal), 6478 }, 6479 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6480 chunkSize: 128, 6481 }, 6482 { 6483 retEvalType: types.ETDuration, 6484 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6485 geners: []dataGenerator{ 6486 newDefaultGener(0.2, types.ETDuration), 6487 newDefaultGener(0.2, types.ETReal), 6488 }, 6489 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6490 chunkSize: 128, 6491 }, 6492 { 6493 retEvalType: types.ETDuration, 6494 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6495 geners: []dataGenerator{ 6496 newDefaultGener(0.2, types.ETDuration), 6497 newDefaultGener(0.2, types.ETReal), 6498 }, 6499 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6500 chunkSize: 128, 6501 }, 6502 { 6503 retEvalType: types.ETDuration, 6504 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6505 geners: []dataGenerator{ 6506 newDefaultGener(0.2, types.ETDuration), 6507 newDefaultGener(0.2, types.ETReal), 6508 }, 6509 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6510 chunkSize: 128, 6511 }, 6512 { 6513 retEvalType: types.ETDuration, 6514 childrenTypes: []types.EvalType{types.ETDuration, types.ETReal, types.ETString}, 6515 geners: []dataGenerator{ 6516 newDefaultGener(0.2, types.ETDuration), 6517 newDefaultGener(0.2, types.ETReal), 6518 }, 6519 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6520 chunkSize: 128, 6521 }, 6522 // builtinSubDateDurationDecimalSig 6523 { 6524 retEvalType: types.ETDuration, 6525 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6526 geners: []dataGenerator{ 6527 newDefaultGener(0.2, types.ETDuration), 6528 newDefaultGener(0.2, types.ETDecimal), 6529 }, 6530 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6531 chunkSize: 128, 6532 }, 6533 { 6534 retEvalType: types.ETDuration, 6535 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6536 geners: []dataGenerator{ 6537 newDefaultGener(0.2, types.ETDuration), 6538 newDefaultGener(0.2, types.ETDecimal), 6539 }, 6540 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6541 chunkSize: 128, 6542 }, 6543 { 6544 retEvalType: types.ETDuration, 6545 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6546 geners: []dataGenerator{ 6547 newDefaultGener(0.2, types.ETDuration), 6548 newDefaultGener(0.2, types.ETDecimal), 6549 }, 6550 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6551 chunkSize: 128, 6552 }, 6553 { 6554 retEvalType: types.ETDuration, 6555 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6556 geners: []dataGenerator{ 6557 newDefaultGener(0.2, types.ETDuration), 6558 newDefaultGener(0.2, types.ETDecimal), 6559 }, 6560 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6561 chunkSize: 128, 6562 }, 6563 { 6564 retEvalType: types.ETDuration, 6565 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6566 geners: []dataGenerator{ 6567 newDefaultGener(0.2, types.ETDuration), 6568 newDefaultGener(0.2, types.ETDecimal), 6569 }, 6570 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6571 chunkSize: 128, 6572 }, 6573 { 6574 retEvalType: types.ETDuration, 6575 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6576 geners: []dataGenerator{ 6577 newDefaultGener(0.2, types.ETDuration), 6578 newDefaultGener(0.2, types.ETDecimal), 6579 }, 6580 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("WEEK"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6581 chunkSize: 128, 6582 }, 6583 { 6584 retEvalType: types.ETDuration, 6585 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6586 geners: []dataGenerator{ 6587 newDefaultGener(0.2, types.ETDuration), 6588 newDefaultGener(0.2, types.ETDecimal), 6589 }, 6590 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6591 chunkSize: 128, 6592 }, 6593 { 6594 retEvalType: types.ETDuration, 6595 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6596 geners: []dataGenerator{ 6597 newDefaultGener(0.2, types.ETDuration), 6598 newDefaultGener(0.2, types.ETDecimal), 6599 }, 6600 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("QUARTER"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6601 chunkSize: 128, 6602 }, 6603 { 6604 retEvalType: types.ETDuration, 6605 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6606 geners: []dataGenerator{ 6607 newDefaultGener(0.2, types.ETDuration), 6608 newDefaultGener(0.2, types.ETDecimal), 6609 }, 6610 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6611 chunkSize: 128, 6612 }, 6613 { 6614 retEvalType: types.ETDuration, 6615 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6616 geners: []dataGenerator{ 6617 newDefaultGener(0.2, types.ETDuration), 6618 newDefaultGener(0.2, types.ETDecimal), 6619 }, 6620 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("SECOND_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6621 chunkSize: 128, 6622 }, 6623 { 6624 retEvalType: types.ETDuration, 6625 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6626 geners: []dataGenerator{ 6627 newDefaultGener(0.2, types.ETDuration), 6628 newDefaultGener(0.2, types.ETDecimal), 6629 }, 6630 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6631 chunkSize: 128, 6632 }, 6633 { 6634 retEvalType: types.ETDuration, 6635 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6636 geners: []dataGenerator{ 6637 newDefaultGener(0.2, types.ETDuration), 6638 newDefaultGener(0.2, types.ETDecimal), 6639 }, 6640 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("MINUTE_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6641 chunkSize: 128, 6642 }, 6643 { 6644 retEvalType: types.ETDuration, 6645 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6646 geners: []dataGenerator{ 6647 newDefaultGener(0.2, types.ETDuration), 6648 newDefaultGener(0.2, types.ETDecimal), 6649 }, 6650 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6651 chunkSize: 128, 6652 }, 6653 { 6654 retEvalType: types.ETDuration, 6655 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6656 geners: []dataGenerator{ 6657 newDefaultGener(0.2, types.ETDuration), 6658 newDefaultGener(0.2, types.ETDecimal), 6659 }, 6660 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6661 chunkSize: 128, 6662 }, 6663 { 6664 retEvalType: types.ETDuration, 6665 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6666 geners: []dataGenerator{ 6667 newDefaultGener(0.2, types.ETDuration), 6668 newDefaultGener(0.2, types.ETDecimal), 6669 }, 6670 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("HOUR_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6671 chunkSize: 128, 6672 }, 6673 { 6674 retEvalType: types.ETDuration, 6675 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6676 geners: []dataGenerator{ 6677 newDefaultGener(0.2, types.ETDuration), 6678 newDefaultGener(0.2, types.ETDecimal), 6679 }, 6680 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MICROSECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6681 chunkSize: 128, 6682 }, 6683 { 6684 retEvalType: types.ETDuration, 6685 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6686 geners: []dataGenerator{ 6687 newDefaultGener(0.2, types.ETDuration), 6688 newDefaultGener(0.2, types.ETDecimal), 6689 }, 6690 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_SECOND"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6691 chunkSize: 128, 6692 }, 6693 { 6694 retEvalType: types.ETDuration, 6695 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6696 geners: []dataGenerator{ 6697 newDefaultGener(0.2, types.ETDuration), 6698 newDefaultGener(0.2, types.ETDecimal), 6699 }, 6700 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_MINUTE"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6701 chunkSize: 128, 6702 }, 6703 { 6704 retEvalType: types.ETDuration, 6705 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6706 geners: []dataGenerator{ 6707 newDefaultGener(0.2, types.ETDuration), 6708 newDefaultGener(0.2, types.ETDecimal), 6709 }, 6710 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("DAY_HOUR"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6711 chunkSize: 128, 6712 }, 6713 { 6714 retEvalType: types.ETDuration, 6715 childrenTypes: []types.EvalType{types.ETDuration, types.ETDecimal, types.ETString}, 6716 geners: []dataGenerator{ 6717 newDefaultGener(0.2, types.ETDuration), 6718 newDefaultGener(0.2, types.ETDecimal), 6719 }, 6720 constants: []*Constant{nil, nil, {Value: types.NewStringCauset("YEAR_MONTH"), RetType: types.NewFieldType(allegrosql.TypeString)}}, 6721 chunkSize: 128, 6722 }, 6723 }, 6724 } 6725 6726 func (s *testVectorizeSuite1) TestVectorizedBuiltinTimeEvalOneVecGenerated(c *C) { 6727 testVectorizedEvalOneVec(c, vecBuiltinTimeGeneratedCases) 6728 } 6729 6730 func (s *testVectorizeSuite1) TestVectorizedBuiltinTimeFuncGenerated(c *C) { 6731 testVectorizedBuiltinFunc(c, vecBuiltinTimeGeneratedCases) 6732 } 6733 6734 func BenchmarkVectorizedBuiltinTimeEvalOneVecGenerated(b *testing.B) { 6735 benchmarkVectorizedEvalOneVec(b, vecBuiltinTimeGeneratedCases) 6736 } 6737 6738 func BenchmarkVectorizedBuiltinTimeFuncGenerated(b *testing.B) { 6739 benchmarkVectorizedBuiltinFunc(b, vecBuiltinTimeGeneratedCases) 6740 }