-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
types.h
823 lines (678 loc) · 42.9 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#pragma once
#include <cstdint>
#include "gandiva/gdv_function_stubs.h"
// Use the same names as in arrow data types. Makes it easy to write pre-processor macros.
using gdv_boolean = bool;
using gdv_int8 = int8_t;
using gdv_int16 = int16_t;
using gdv_int32 = int32_t;
using gdv_int64 = int64_t;
using gdv_uint8 = uint8_t;
using gdv_uint16 = uint16_t;
using gdv_uint32 = uint32_t;
using gdv_uint64 = uint64_t;
using gdv_float32 = float;
using gdv_float64 = double;
using gdv_date64 = int64_t;
using gdv_date32 = int32_t;
using gdv_time32 = int32_t;
using gdv_timestamp = int64_t;
using gdv_utf8 = char*;
using gdv_binary = char*;
using gdv_day_time_interval = int64_t;
#ifdef GANDIVA_UNIT_TEST
// unit tests may be compiled without O2, so inlining may not happen.
#define FORCE_INLINE
#else
#define FORCE_INLINE __attribute__((always_inline))
#endif
extern "C" {
bool bitMapGetBit(const unsigned char* bmap, int64_t position);
void bitMapSetBit(unsigned char* bmap, int64_t position, bool value);
void bitMapClearBitIfFalse(unsigned char* bmap, int64_t position, bool value);
gdv_int64 extractMillennium_timestamp(gdv_timestamp millis);
gdv_int64 extractCentury_timestamp(gdv_timestamp millis);
gdv_int64 extractDecade_timestamp(gdv_timestamp millis);
gdv_int64 extractYear_timestamp(gdv_timestamp millis);
gdv_int64 extractDoy_timestamp(gdv_timestamp millis);
gdv_int64 extractQuarter_timestamp(gdv_timestamp millis);
gdv_int64 extractMonth_timestamp(gdv_timestamp millis);
gdv_int64 extractWeek_timestamp(gdv_timestamp millis);
gdv_int64 extractDow_timestamp(gdv_timestamp millis);
gdv_int64 extractDay_timestamp(gdv_timestamp millis);
gdv_int64 extractHour_timestamp(gdv_timestamp millis);
gdv_int64 extractMinute_timestamp(gdv_timestamp millis);
gdv_int64 extractSecond_timestamp(gdv_timestamp millis);
gdv_int64 extractHour_time32(gdv_int32 millis_in_day);
gdv_int64 extractMinute_time32(gdv_int32 millis_in_day);
gdv_int64 extractSecond_time32(gdv_int32 millis_in_day);
gdv_int32 hash32(double val, gdv_int32 seed);
gdv_int32 hash32_buf(const gdv_uint8* buf, int len, gdv_int32 seed);
gdv_int64 hash64(double val, gdv_int64 seed);
gdv_int64 hash64_buf(const gdv_uint8* buf, int len, gdv_int64 seed);
gdv_int32 timestampdiffMonth_timestamp_timestamp(gdv_timestamp, gdv_timestamp);
gdv_int64 timestampaddSecond_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddMinute_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddHour_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddDay_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddWeek_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddMonth_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddQuarter_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddYear_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 timestampaddSecond_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddMinute_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddHour_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddDay_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddWeek_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddMonth_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddQuarter_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddYear_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 timestampaddSecond_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddMinute_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddHour_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddDay_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddWeek_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddMonth_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddQuarter_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddYear_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 timestampaddSecond_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddMinute_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddHour_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddDay_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddWeek_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddMonth_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddQuarter_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_int64 timestampaddYear_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_boolean isnull_day_time_interval(gdv_day_time_interval in, gdv_boolean is_valid);
gdv_boolean istrue_boolean(gdv_boolean in, gdv_boolean isvalid);
gdv_boolean isfalse_boolean(gdv_boolean in, gdv_boolean isvalid);
gdv_boolean istrue_int32(gdv_int32 in, gdv_boolean is_valid);
gdv_boolean istrue_int64(gdv_int64 in, gdv_boolean is_valid);
gdv_boolean istrue_uint32(gdv_uint32 in, gdv_boolean is_valid);
gdv_boolean istrue_uint64(gdv_uint64 in, gdv_boolean is_valid);
gdv_boolean isfalse_int32(gdv_int32 in, gdv_boolean is_valid);
gdv_boolean isfalse_int64(gdv_int64 in, gdv_boolean is_valid);
gdv_boolean isfalse_uint32(gdv_uint32 in, gdv_boolean is_valid);
gdv_boolean isfalse_uint64(gdv_uint64 in, gdv_boolean is_valid);
gdv_boolean isnottrue_boolean(gdv_boolean in, gdv_boolean isvalid);
gdv_boolean isnotfalse_boolean(gdv_boolean in, gdv_boolean isvalid);
gdv_boolean isnottrue_int32(gdv_int32 in, gdv_boolean is_valid);
gdv_boolean isnottrue_int64(gdv_int64 in, gdv_boolean is_valid);
gdv_boolean isnottrue_uint32(gdv_uint32 in, gdv_boolean is_valid);
gdv_boolean isnottrue_uint64(gdv_uint64 in, gdv_boolean is_valid);
gdv_boolean isnotfalse_int32(gdv_int32 in, gdv_boolean is_valid);
gdv_boolean isnotfalse_int64(gdv_int64 in, gdv_boolean is_valid);
gdv_boolean isnotfalse_uint32(gdv_uint32 in, gdv_boolean is_valid);
gdv_boolean isnotfalse_uint64(gdv_uint64 in, gdv_boolean is_valid);
gdv_int32 nvl_int32_int32(gdv_int32 in, gdv_boolean is_valid_in, gdv_int32 replace,
gdv_boolean is_valid_value);
gdv_int64 nvl_int64_int64(gdv_int64 in, gdv_boolean is_valid_in, gdv_int64 replace,
gdv_boolean is_valid_value);
gdv_float32 nvl_float32_float32(gdv_float32 in, gdv_boolean is_valid_in,
gdv_float32 replace, gdv_boolean is_valid_value);
gdv_float64 nvl_float64_float64(gdv_float64 in, gdv_boolean is_valid_in,
gdv_float64 replace, gdv_boolean is_valid_value);
gdv_boolean nvl_boolean_boolean(gdv_boolean in, gdv_boolean is_valid_in,
gdv_boolean replace, gdv_boolean is_valid_value);
gdv_int64 date_add_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 add_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_int64 add_int32_timestamp(gdv_int32, gdv_timestamp);
gdv_int64 date_add_int64_timestamp(gdv_int64, gdv_timestamp);
gdv_timestamp add_date64_int64(gdv_date64, gdv_int64);
gdv_timestamp to_timestamp_int32(gdv_int32);
gdv_timestamp to_timestamp_int64(gdv_int64);
gdv_timestamp to_timestamp_float32(gdv_float32);
gdv_timestamp to_timestamp_float64(gdv_float64);
gdv_time32 to_time_int32(gdv_int32);
gdv_time32 to_time_int64(gdv_int64);
gdv_time32 to_time_float32(gdv_float32);
gdv_time32 to_time_float64(gdv_float64);
gdv_int64 date_sub_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 subtract_timestamp_int32(gdv_timestamp, gdv_int32);
gdv_int64 date_diff_timestamp_int64(gdv_timestamp, gdv_int64);
gdv_boolean castBIT_utf8(gdv_int64 context, const char* data, gdv_int32 data_len);
bool is_distinct_from_timestamp_timestamp(gdv_int64, bool, gdv_int64, bool);
bool is_not_distinct_from_int32_int32(gdv_int32, bool, gdv_int32, bool);
gdv_int64 date_trunc_Second_date64(gdv_date64);
gdv_int64 date_trunc_Minute_date64(gdv_date64);
gdv_int64 date_trunc_Hour_date64(gdv_date64);
gdv_int64 date_trunc_Day_date64(gdv_date64);
gdv_int64 date_trunc_Month_date64(gdv_date64);
gdv_int64 date_trunc_Quarter_date64(gdv_date64);
gdv_int64 date_trunc_Year_date64(gdv_date64);
gdv_int64 date_trunc_Decade_date64(gdv_date64);
gdv_int64 date_trunc_Century_date64(gdv_date64);
gdv_int64 date_trunc_Millennium_date64(gdv_date64);
gdv_int32 datediff_timestamp_timestamp(gdv_timestamp start_millis,
gdv_timestamp end_millis);
gdv_int64 date_trunc_Week_timestamp(gdv_timestamp);
double months_between_timestamp_timestamp(gdv_uint64, gdv_uint64);
gdv_int32 mem_compare(const char* left, gdv_int32 left_len, const char* right,
gdv_int32 right_len);
gdv_int32 mod_int64_int32(gdv_int64 left, gdv_int32 right);
gdv_float64 mod_float64_float64(gdv_int64 context, gdv_float64 left, gdv_float64 right);
gdv_int64 pmod_int64_int64(int64_t context, gdv_int64 left, gdv_int64 right);
gdv_int32 positive_int32(gdv_int32 in);
gdv_int64 positive_int64(gdv_int64 in);
gdv_int32 negative_int32(gdv_int64 context, gdv_int32 in);
gdv_int64 negative_int64(gdv_int64 context, gdv_int64 in);
gdv_float32 positive_float32(gdv_float32 in);
gdv_float64 positive_float64(gdv_float64 in);
gdv_float32 negative_float32(gdv_float32 in);
gdv_float64 negative_float64(gdv_float64 in);
void negative_decimal(gdv_int64 context, int64_t high_bits, uint64_t low_bits,
int32_t /*precision*/, int32_t /*scale*/, int32_t /*out_precision*/,
int32_t /*out_scale*/, int64_t* out_high_bits,
uint64_t* out_low_bits);
gdv_month_interval negative_month_interval(gdv_int64 context,
gdv_month_interval interval);
gdv_int64 negative_daytimeinterval(gdv_int64 context, gdv_day_time_interval interval);
gdv_int64 divide_int64_int64(gdv_int64 context, gdv_int64 in1, gdv_int64 in2);
gdv_int64 div_int64_int64(gdv_int64 context, gdv_int64 in1, gdv_int64 in2);
gdv_float32 div_float32_float32(gdv_int64 context, gdv_float32 in1, gdv_float32 in2);
gdv_float64 div_float64_float64(gdv_int64 context, gdv_float64 in1, gdv_float64 in2);
gdv_float32 round_float32(gdv_float32);
gdv_float64 round_float64(gdv_float64);
gdv_float64 bround_float64(gdv_float64);
gdv_float32 round_float32_int32(gdv_float32 number, gdv_int32 out_scale);
gdv_float64 round_float64_int32(gdv_float64 number, gdv_int32 out_scale);
gdv_float64 get_scale_multiplier(gdv_int32);
gdv_int32 round_int32_int32(gdv_int32 number, gdv_int32 precision);
gdv_int64 round_int64_int32(gdv_int64 number, gdv_int32 precision);
gdv_int32 round_int32(gdv_int32);
gdv_int64 round_int64(gdv_int64);
gdv_int64 get_power_of_10(gdv_int32);
const char* bin_int32(int64_t context, gdv_int32 value, int32_t* out_len);
const char* bin_int64(int64_t context, gdv_int64 value, int32_t* out_len);
gdv_float64 cbrt_int32(gdv_int32);
gdv_float64 cbrt_int64(gdv_int64);
gdv_float64 cbrt_float32(gdv_float32);
gdv_float64 cbrt_float64(gdv_float64);
gdv_float64 exp_int32(gdv_int32);
gdv_float64 exp_int64(gdv_int64);
gdv_float64 exp_float32(gdv_float32);
gdv_float64 exp_float64(gdv_float64);
gdv_float64 log_int32(gdv_int32);
gdv_float64 log_int64(gdv_int64);
gdv_float64 log_float32(gdv_float32);
gdv_float64 log_float64(gdv_float64);
gdv_float64 log10_int32(gdv_int32);
gdv_float64 log10_int64(gdv_int64);
gdv_float64 log10_float32(gdv_float32);
gdv_float64 log10_float64(gdv_float64);
gdv_float64 sin_int32(gdv_int32);
gdv_float64 sin_int64(gdv_int64);
gdv_float64 sin_float32(gdv_float32);
gdv_float64 sin_float64(gdv_float64);
gdv_float64 cos_int32(gdv_int32);
gdv_float64 cos_int64(gdv_int64);
gdv_float64 cos_float32(gdv_float32);
gdv_float64 cos_float64(gdv_float64);
gdv_float64 asin_int32(gdv_int32);
gdv_float64 asin_int64(gdv_int64);
gdv_float64 asin_float32(gdv_float32);
gdv_float64 asin_float64(gdv_float64);
gdv_float64 acos_int32(gdv_int32);
gdv_float64 acos_int64(gdv_int64);
gdv_float64 acos_float32(gdv_float32);
gdv_float64 acos_float64(gdv_float64);
gdv_float64 tan_int32(gdv_int32);
gdv_float64 tan_int64(gdv_int64);
gdv_float64 tan_float32(gdv_float32);
gdv_float64 tan_float64(gdv_float64);
gdv_float64 atan_int32(gdv_int32);
gdv_float64 atan_int64(gdv_int64);
gdv_float64 atan_float32(gdv_float32);
gdv_float64 atan_float64(gdv_float64);
gdv_float64 sinh_int32(gdv_int32);
gdv_float64 sinh_int64(gdv_int64);
gdv_float64 sinh_float32(gdv_float32);
gdv_float64 sinh_float64(gdv_float64);
gdv_float64 cosh_int32(gdv_int32);
gdv_float64 cosh_int64(gdv_int64);
gdv_float64 cosh_float32(gdv_float32);
gdv_float64 cosh_float64(gdv_float64);
gdv_float64 tanh_int32(gdv_int32);
gdv_float64 tanh_int64(gdv_int64);
gdv_float64 tanh_float32(gdv_float32);
gdv_float64 tanh_float64(gdv_float64);
gdv_float64 atan2_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_float64 atan2_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_float64 atan2_float32_float32(gdv_float32 in1, gdv_float32 in2);
gdv_float64 atan2_float64_float64(gdv_float64 in1, gdv_float64 in2);
gdv_float64 cot_float32(gdv_float32);
gdv_float64 cot_float64(gdv_float64);
gdv_float64 radians_int32(gdv_int32);
gdv_float64 radians_int64(gdv_int64);
gdv_float64 radians_float32(gdv_float32);
gdv_float64 radians_float64(gdv_float64);
gdv_float64 degrees_int32(gdv_int32);
gdv_float64 degrees_int64(gdv_int64);
gdv_float64 degrees_float32(gdv_float32);
gdv_float64 degrees_float64(gdv_float64);
gdv_int32 bitwise_and_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_int64 bitwise_and_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_int32 bitwise_or_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_int64 bitwise_or_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_int32 bitwise_xor_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_int64 bitwise_xor_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_int32 bitwise_not_int32(gdv_int32);
gdv_int64 bitwise_not_int64(gdv_int64);
gdv_int32 greatest_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_int64 greatest_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_int32 greatest_int32_int32_int32(gdv_int32 in1, gdv_int32 in2, gdv_int32 in3);
gdv_int64 greatest_int64_int64_int64(gdv_int64 in1, gdv_int64 in2, gdv_int64 in3);
gdv_int32 greatest_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2, gdv_int32 in3,
gdv_int32 in4);
gdv_int64 greatest_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2, gdv_int64 in3,
gdv_int64 in4);
gdv_int32 greatest_int32_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2,
gdv_int32 in3, gdv_int32 in4,
gdv_int32 in5);
gdv_int64 greatest_int64_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2,
gdv_int64 in3, gdv_int64 in4,
gdv_int64 in5);
gdv_int32 greatest_int32_int32_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2,
gdv_int32 in3, gdv_int32 in4,
gdv_int32 in5, gdv_int32 in6);
gdv_int64 greatest_int64_int64_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2,
gdv_int64 in3, gdv_int64 in4,
gdv_int64 in5, gdv_int64 in6);
gdv_float32 greatest_float32_float32(gdv_float32 in1, gdv_float32 in2);
gdv_float64 greatest_float64_float64(gdv_float64 in1, gdv_float64 in2);
gdv_float32 greatest_float32_float32_float32(gdv_float32 in1, gdv_float32 in2,
gdv_float32 in3);
gdv_float64 greatest_float64_float64_float64(gdv_float64 in1, gdv_float64 in2,
gdv_float64 in3);
gdv_float32 greatest_float32_float32_float32_float32(gdv_float32 in1, gdv_float32 in2,
gdv_float32 in3, gdv_float32 in4);
gdv_float64 greatest_float64_float64_float64_float64(gdv_float64 in1, gdv_float64 in2,
gdv_float64 in3, gdv_float64 in4);
gdv_float32 greatest_float32_float32_float32_float32_float32(
gdv_float32 in1, gdv_float32 in2, gdv_float32 in3, gdv_float32 in4, gdv_float32 in5);
gdv_float64 greatest_float64_float64_float64_float64_float64(
gdv_float64 in1, gdv_float64 in2, gdv_float64 in3, gdv_float64 in4, gdv_float64 in5);
gdv_float32 greatest_float32_float32_float32_float32_float32_float32(
gdv_float32 in1, gdv_float32 in2, gdv_float32 in3, gdv_float32 in4, gdv_float32 in5,
gdv_float32 in6);
gdv_float64 greatest_float64_float64_float64_float64_float64_float64(
gdv_float64 in1, gdv_float64 in2, gdv_float64 in3, gdv_float64 in4, gdv_float64 in5,
gdv_float64 in6);
gdv_int32 least_int32_int32(gdv_int32 in1, gdv_int32 in2);
gdv_int64 least_int64_int64(gdv_int64 in1, gdv_int64 in2);
gdv_int32 least_int32_int32_int32(gdv_int32 in1, gdv_int32 in2, gdv_int32 in3);
gdv_int64 least_int64_int64_int64(gdv_int64 in1, gdv_int64 in2, gdv_int64 in3);
gdv_int32 least_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2, gdv_int32 in3,
gdv_int32 in4);
gdv_int64 least_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2, gdv_int64 in3,
gdv_int64 in4);
gdv_int32 least_int32_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2, gdv_int32 in3,
gdv_int32 in4, gdv_int32 in5);
gdv_int64 least_int64_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2, gdv_int64 in3,
gdv_int64 in4, gdv_int64 in5);
gdv_int32 least_int32_int32_int32_int32_int32_int32(gdv_int32 in1, gdv_int32 in2,
gdv_int32 in3, gdv_int32 in4,
gdv_int32 in5, gdv_int32 in6);
gdv_int64 least_int64_int64_int64_int64_int64_int64(gdv_int64 in1, gdv_int64 in2,
gdv_int64 in3, gdv_int64 in4,
gdv_int64 in5, gdv_int64 in6);
gdv_float32 least_float32_float32(gdv_float32 in1, gdv_float32 in2);
gdv_float64 least_float64_float64(gdv_float64 in1, gdv_float64 in2);
gdv_float32 least_float32_float32_float32(gdv_float32 in1, gdv_float32 in2,
gdv_float32 in3);
gdv_float64 least_float64_float64_float64(gdv_float64 in1, gdv_float64 in2,
gdv_float64 in3);
gdv_float32 least_float32_float32_float32_float32(gdv_float32 in1, gdv_float32 in2,
gdv_float32 in3, gdv_float32 in4);
gdv_float64 least_float64_float64_float64_float64(gdv_float64 in1, gdv_float64 in2,
gdv_float64 in3, gdv_float64 in4);
gdv_float32 least_float32_float32_float32_float32_float32(
gdv_float32 in1, gdv_float32 in2, gdv_float32 in3, gdv_float32 in4, gdv_float32 in5);
gdv_float64 least_float64_float64_float64_float64_float64(
gdv_float64 in1, gdv_float64 in2, gdv_float64 in3, gdv_float64 in4, gdv_float64 in5);
gdv_float32 least_float32_float32_float32_float32_float32_float32(
gdv_float32 in1, gdv_float32 in2, gdv_float32 in3, gdv_float32 in4, gdv_float32 in5,
gdv_float32 in6);
gdv_float64 least_float64_float64_float64_float64_float64_float64(
gdv_float64 in1, gdv_float64 in2, gdv_float64 in3, gdv_float64 in4, gdv_float64 in5,
gdv_float64 in6);
gdv_int64 factorial_int32(gdv_int64 context, gdv_int32 value);
gdv_int64 factorial_int64(gdv_int64 context, gdv_int64 value);
gdv_float64 power_float64_float64(gdv_float64, gdv_float64);
gdv_float64 log_int32_int32(gdv_int64 context, gdv_int32 base, gdv_int32 value);
bool starts_with_utf8_utf8(const char* data, gdv_int32 data_len, const char* prefix,
gdv_int32 prefix_len);
bool ends_with_utf8_utf8(const char* data, gdv_int32 data_len, const char* suffix,
gdv_int32 suffix_len);
bool is_substr_utf8_utf8(const char* data, gdv_int32 data_len, const char* substr,
gdv_int32 substr_len);
gdv_int32 utf8_length(gdv_int64 context, const char* data, gdv_int32 data_len);
gdv_int32 utf8_last_char_pos(gdv_int64 context, const char* data, gdv_int32 data_len);
gdv_date64 castDATE_utf8(int64_t execution_context, const char* input, gdv_int32 length);
gdv_date64 castDATE_int64(gdv_int64 date);
gdv_date64 castDATE_date32(gdv_date32 date);
gdv_date32 castDATE_int32(gdv_int32 date);
gdv_timestamp castTIMESTAMP_utf8(int64_t execution_context, const char* input,
gdv_int32 length);
gdv_timestamp castTIMESTAMP_date64(gdv_date64);
gdv_timestamp castTIMESTAMP_int64(gdv_int64);
gdv_date64 castDATE_timestamp(gdv_timestamp);
gdv_time32 castTIME_utf8(int64_t context, const char* input, int32_t length);
gdv_time32 castTIME_timestamp(gdv_timestamp timestamp_in_millis);
gdv_time32 castTIME_int32(int32_t int_val);
const char* castVARCHAR_timestamp_int64(int64_t, gdv_timestamp, gdv_int64, gdv_int32*);
gdv_date64 last_day_from_timestamp(gdv_date64 millis);
gdv_date64 next_day_from_timestamp(gdv_int64 context, gdv_date64 millis, const char* in,
int32_t in_len);
gdv_int64 truncate_int64_int32(gdv_int64 in, gdv_int32 out_scale);
const char* repeat_utf8_int32(gdv_int64 context, const char* in, gdv_int32 in_len,
gdv_int32 repeat_times, gdv_int32* out_len);
const char* substr_utf8_int64_int64(gdv_int64 context, const char* input,
gdv_int32 in_len, gdv_int64 offset64,
gdv_int64 length, gdv_int32* out_len);
const char* substr_utf8_int64(gdv_int64 context, const char* input, gdv_int32 in_len,
gdv_int64 offset64, gdv_int32* out_len);
const char* concat_utf8_utf8(gdv_int64 context, const char* left, gdv_int32 left_len,
bool left_validity, const char* right, gdv_int32 right_len,
bool right_validity, gdv_int32* out_len);
const char* concat_utf8_utf8_utf8(gdv_int64 context, const char* in1, gdv_int32 in1_len,
bool in1_validity, const char* in2, gdv_int32 in2_len,
bool in2_validity, const char* in3, gdv_int32 in3_len,
bool in3_validity, gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8(gdv_int64 context, const char* in1,
gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len,
bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity,
const char* in4, gdv_int32 in4_len,
bool in4_validity, gdv_int32* out_len);
const char* space_int32(gdv_int64 ctx, gdv_int32 n, int32_t* out_len);
const char* space_int64(gdv_int64 ctx, gdv_int64 n, int32_t* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
const char* in6, gdv_int32 in6_len, bool in6_validity, gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
const char* in6, gdv_int32 in6_len, bool in6_validity, const char* in7,
gdv_int32 in7_len, bool in7_validity, gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
const char* in6, gdv_int32 in6_len, bool in6_validity, const char* in7,
gdv_int32 in7_len, bool in7_validity, const char* in8, gdv_int32 in8_len,
bool in8_validity, gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
const char* in6, gdv_int32 in6_len, bool in6_validity, const char* in7,
gdv_int32 in7_len, bool in7_validity, const char* in8, gdv_int32 in8_len,
bool in8_validity, const char* in9, gdv_int32 in9_len, bool in9_validity,
gdv_int32* out_len);
const char* concat_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, bool in1_validity,
const char* in2, gdv_int32 in2_len, bool in2_validity, const char* in3,
gdv_int32 in3_len, bool in3_validity, const char* in4, gdv_int32 in4_len,
bool in4_validity, const char* in5, gdv_int32 in5_len, bool in5_validity,
const char* in6, gdv_int32 in6_len, bool in6_validity, const char* in7,
gdv_int32 in7_len, bool in7_validity, const char* in8, gdv_int32 in8_len,
bool in8_validity, const char* in9, gdv_int32 in9_len, bool in9_validity,
const char* in10, gdv_int32 in10_len, bool in10_validity, gdv_int32* out_len);
const char* concatOperator_utf8_utf8(gdv_int64 context, const char* left,
gdv_int32 left_len, const char* right,
gdv_int32 right_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8(gdv_int64 context, const char* in1,
gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3,
gdv_int32 in3_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8(gdv_int64 context, const char* in1,
gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3,
gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, const char* in6,
gdv_int32 in6_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, const char* in6,
gdv_int32 in6_len, const char* in7, gdv_int32 in7_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, const char* in6,
gdv_int32 in6_len, const char* in7, gdv_int32 in7_len, const char* in8,
gdv_int32 in8_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, const char* in6,
gdv_int32 in6_len, const char* in7, gdv_int32 in7_len, const char* in8,
gdv_int32 in8_len, const char* in9, gdv_int32 in9_len, gdv_int32* out_len);
const char* concatOperator_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8_utf8(
gdv_int64 context, const char* in1, gdv_int32 in1_len, const char* in2,
gdv_int32 in2_len, const char* in3, gdv_int32 in3_len, const char* in4,
gdv_int32 in4_len, const char* in5, gdv_int32 in5_len, const char* in6,
gdv_int32 in6_len, const char* in7, gdv_int32 in7_len, const char* in8,
gdv_int32 in8_len, const char* in9, gdv_int32 in9_len, const char* in10,
gdv_int32 in10_len, gdv_int32* out_len);
const char* castVARCHAR_binary_int64(gdv_int64 context, const char* data,
gdv_int32 data_len, int64_t out_len,
int32_t* out_length);
const char* castVARCHAR_utf8_int64(gdv_int64 context, const char* data,
gdv_int32 data_len, int64_t out_len,
int32_t* out_length);
const char* castVARBINARY_utf8_int64(gdv_int64 context, const char* data,
gdv_int32 data_len, int64_t out_len,
int32_t* out_length);
const char* castVARBINARY_binary_int64(gdv_int64 context, const char* data,
gdv_int32 data_len, int64_t out_len,
int32_t* out_length);
const char* castBINARY_utf8(const char* data, gdv_int32 data_len, int32_t* out_length);
const char* castBINARY_binary(const char* data, gdv_int32 data_len, int32_t* out_length);
gdv_int32 levenshtein(int64_t context, const char* in1, int32_t in1_len, const char* in2,
int32_t in2_len);
const char* reverse_utf8(gdv_int64 context, const char* data, gdv_int32 data_len,
int32_t* out_len);
const char* ltrim_utf8(gdv_int64 context, const char* data, gdv_int32 data_len,
int32_t* out_len);
const char* rtrim_utf8(gdv_int64 context, const char* data, gdv_int32 data_len,
int32_t* out_len);
const char* btrim_utf8(gdv_int64 context, const char* data, gdv_int32 data_len,
int32_t* out_len);
const char* ltrim_utf8_utf8(gdv_int64 context, const char* basetext,
gdv_int32 basetext_len, const char* trimtext,
gdv_int32 trimtext_len, int32_t* out_len);
const char* rtrim_utf8_utf8(gdv_int64 context, const char* basetext,
gdv_int32 basetext_len, const char* trimtext,
gdv_int32 trimtext_len, int32_t* out_len);
const char* btrim_utf8_utf8(gdv_int64 context, const char* basetext,
gdv_int32 basetext_len, const char* trimtext,
gdv_int32 trimtext_len, int32_t* out_len);
gdv_int32 ascii_utf8(const char* data, gdv_int32 data_len);
const char* quote_utf8(gdv_int64 context, const char* in, gdv_int32 in_len,
gdv_int32* out_len);
const char* chr_int32(gdv_int64 context, gdv_int32 in, gdv_int32* out_len);
const char* chr_int64(gdv_int64 context, gdv_int64 in, gdv_int32* out_len);
gdv_int32 locate_utf8_utf8(gdv_int64 context, const char* sub_str, gdv_int32 sub_str_len,
const char* str, gdv_int32 str_len);
gdv_int32 strpos_utf8_utf8(gdv_int64 context, const char* str, gdv_int32 str_len,
const char* sub_str, gdv_int32 sub_str_len);
gdv_int32 locate_utf8_utf8_int32(gdv_int64 context, const char* sub_str,
gdv_int32 sub_str_len, const char* str,
gdv_int32 str_len, gdv_int32 start_pos);
const char* lpad_utf8_int32_utf8(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 return_length, const char* fill_text,
gdv_int32 fill_text_len, gdv_int32* out_len);
const char* rpad_utf8_int32_utf8(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 return_length, const char* fill_text,
gdv_int32 fill_text_len, gdv_int32* out_len);
const char* lpad_utf8_int32(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 return_length, gdv_int32* out_len);
const char* rpad_utf8_int32(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 return_length, gdv_int32* out_len);
const char* replace_with_max_len_utf8_utf8_utf8(gdv_int64 context, const char* text,
gdv_int32 text_len, const char* from_str,
gdv_int32 from_str_len,
const char* to_str, gdv_int32 to_str_len,
gdv_int32 max_length, gdv_int32* out_len);
const char* replace_utf8_utf8_utf8(gdv_int64 context, const char* text,
gdv_int32 text_len, const char* from_str,
gdv_int32 from_str_len, const char* to_str,
gdv_int32 to_str_len, gdv_int32* out_len);
const char* convert_fromUTF8_binary(gdv_int64 context, const char* bin_in, gdv_int32 len,
gdv_int32* out_len);
const char* convert_replace_invalid_fromUTF8_binary(int64_t context, const char* text_in,
int32_t text_len,
const char* char_to_replace,
int32_t char_to_replace_len,
int32_t* out_len);
const char* convert_toDOUBLE(int64_t context, double value, int32_t* out_len);
const char* convert_toDOUBLE_be(int64_t context, double value, int32_t* out_len);
const char* convert_toFLOAT(int64_t context, float value, int32_t* out_len);
const char* convert_toFLOAT_be(int64_t context, float value, int32_t* out_len);
const char* convert_toBIGINT(int64_t context, int64_t value, int32_t* out_len);
const char* convert_toBIGINT_be(int64_t context, int64_t value, int32_t* out_len);
const char* convert_toINT(int64_t context, int32_t value, int32_t* out_len);
const char* convert_toINT_be(int64_t context, int32_t value, int32_t* out_len);
const char* convert_toBOOLEAN(int64_t context, bool value, int32_t* out_len);
const char* convert_toTIME_EPOCH(int64_t context, int32_t value, int32_t* out_len);
const char* convert_toTIME_EPOCH_be(int64_t context, int32_t value, int32_t* out_len);
const char* convert_toTIMESTAMP_EPOCH(int64_t context, int64_t timestamp,
int32_t* out_len);
const char* convert_toTIMESTAMP_EPOCH_be(int64_t context, int64_t timestamp,
int32_t* out_len);
const char* convert_toDATE_EPOCH(int64_t context, int64_t date, int32_t* out_len);
const char* convert_toDATE_EPOCH_be(int64_t context, int64_t date, int32_t* out_len);
const char* convert_toUTF8(int64_t context, const char* value, int32_t value_len,
int32_t* out_len);
const char* split_part(gdv_int64 context, const char* text, gdv_int32 text_len,
const char* splitter, gdv_int32 split_len, gdv_int32 index,
gdv_int32* out_len);
const char* byte_substr_binary_int32_int32(gdv_int64 context, const char* text,
gdv_int32 text_len, gdv_int32 offset,
gdv_int32 length, gdv_int32* out_len);
const char* soundex_utf8(gdv_int64 context, const char* in, gdv_int32 in_len,
bool in_validity, bool* out_valid, int32_t* out_len);
const char* castVARCHAR_bool_int64(gdv_int64 context, gdv_boolean value,
gdv_int64 out_len, gdv_int32* out_length);
const char* castVARCHAR_int32_int64(int64_t context, int32_t value, int64_t len,
int32_t* out_len);
const char* castVARCHAR_int64_int64(int64_t context, int64_t value, int64_t len,
int32_t* out_len);
const char* castVARCHAR_float32_int64(int64_t context, float value, int64_t len,
int32_t* out_len);
const char* castVARCHAR_float64_int64(int64_t context, double value, int64_t len,
int32_t* out_len);
const char* left_utf8_int32(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 number, gdv_int32* out_len);
const char* right_utf8_int32(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32 number, gdv_int32* out_len);
const char* binary_string(gdv_int64 context, const char* text, gdv_int32 text_len,
gdv_int32* out_len);
const char* to_hex_binary(int64_t context, const char* text, int32_t text_len,
int32_t* out_len);
const char* to_hex_int64(int64_t context, int64_t data, int32_t* out_len);
const char* to_hex_int32(int64_t context, int32_t data, int32_t* out_len);
const char* from_hex_utf8(int64_t context, const char* text, int32_t text_len,
bool text_validity, bool* out_valid, int32_t* out_len);
int32_t castINT_utf8(int64_t context, const char* data, int32_t len);
int64_t castBIGINT_utf8(int64_t context, const char* data, int32_t len);
float castFLOAT4_utf8(int64_t context, const char* data, int32_t len);
double castFLOAT8_utf8(int64_t context, const char* data, int32_t len);
int32_t castINT_float32(gdv_float32 value);
int32_t castINT_float64(gdv_float64 value);
int64_t castBIGINT_float32(gdv_float32 value);
int64_t castBIGINT_float64(gdv_float64 value);
int64_t castBIGINT_daytimeinterval(gdv_day_time_interval in);
int32_t castINT_year_interval(gdv_month_interval in);
int64_t castBIGINT_year_interval(gdv_month_interval in);
gdv_day_time_interval castNULLABLEINTERVALDAY_int32(gdv_int32 in);
gdv_day_time_interval castNULLABLEINTERVALDAY_int64(gdv_int64 in);
gdv_month_interval castNULLABLEINTERVALYEAR_int32(int64_t context, gdv_int32 in);
gdv_month_interval castNULLABLEINTERVALYEAR_int64(int64_t context, gdv_int64 in);
const char* concat_ws_utf8_utf8(int64_t context, const char* separator,
int32_t separator_len, bool separator_validity,
const char* word1, int32_t word1_len, bool word1_validity,
const char* word2, int32_t word2_len, bool word2_validity,
bool* out_valid, int32_t* out_len);
const char* concat_ws_utf8_utf8_utf8(
int64_t context, const char* separator, int32_t separator_len,
bool separator_validity, const char* word1, int32_t word1_len, bool word1_validity,
const char* word2, int32_t word2_len, bool word2_validity, const char* word3,
int32_t word3_len, bool word3_validity, bool* out_valid, int32_t* out_len);
const char* concat_ws_utf8_utf8_utf8_utf8(
int64_t context, const char* separator, int32_t separator_len,
bool separator_validity, const char* word1, int32_t word1_len, bool word1_validity,
const char* word2, int32_t word2_len, bool word2_validity, const char* word3,
int32_t word3_len, bool word3_validity, const char* word4, int32_t word4_len,
bool word4_validity, bool* out_valid, int32_t* out_len);
const char* concat_ws_utf8_utf8_utf8_utf8_utf8(
int64_t context, const char* separator, int32_t separator_len,
bool separator_validity, const char* word1, int32_t word1_len, bool word1_validity,
const char* word2, int32_t word2_len, bool word2_validity, const char* word3,
int32_t word3_len, bool word3_validity, const char* word4, int32_t word4_len,
bool word4_validity, const char* word5, int32_t word5_len, bool word5_validity,
bool* out_valid, int32_t* out_len);
const char* elt_int32_utf8_utf8(int32_t pos, bool pos_validity, const char* word1,
int32_t word1_len, bool in1_validity, const char* word2,
int32_t word2_len, bool in2_validity, bool* out_valid,
int32_t* out_len);
const char* elt_int32_utf8_utf8_utf8(int32_t pos, bool pos_validity, const char* word1,
int32_t word1_len, bool word1_validity,
const char* word2, int32_t word2_len,
bool word2_validity, const char* word3,
int32_t word3_len, bool word3_validity,
bool* out_valid, int32_t* out_len);
const char* elt_int32_utf8_utf8_utf8_utf8(
int32_t pos, bool pos_validity, const char* word1, int32_t word1_len,
bool word1_validity, const char* word2, int32_t word2_len, bool word2_validity,
const char* word3, int32_t word3_len, bool word3_validity, const char* word4,
int32_t word4_len, bool word4_validity, bool* out_valid, int32_t* out_len);
const char* elt_int32_utf8_utf8_utf8_utf8_utf8(
int32_t pos, bool pos_validity, const char* word1, int32_t word1_len,
bool word1_validity, const char* word2, int32_t word2_len, bool word2_validity,
const char* word3, int32_t word3_len, bool word3_validity, const char* word4,
int32_t word4_len, bool word4_validity, const char* word5, int32_t word5_len,
bool word5_validity, bool* out_valid, int32_t* out_len);
int32_t instr_utf8(const char* string, int32_t string_len, const char* substring,
int32_t substring_len);
} // extern "C"