be/src/exprs/function/array/function_array_register.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/array/registerFunctionsArray.cpp |
19 | | // and modified by Doris |
20 | | |
21 | | #include "exprs/function/simple_function_factory.h" |
22 | | |
23 | | namespace doris { |
24 | | void register_function_array_flatten(SimpleFunctionFactory&); |
25 | | void register_function_array_shuffle(SimpleFunctionFactory&); |
26 | | void register_function_array_exists(SimpleFunctionFactory&); |
27 | | void register_function_array_element(SimpleFunctionFactory&); |
28 | | void register_function_array_index(SimpleFunctionFactory&); |
29 | | void register_function_array_aggregation(SimpleFunctionFactory&); |
30 | | void register_function_array_distance(SimpleFunctionFactory&); |
31 | | void register_function_array_distinct(SimpleFunctionFactory&); |
32 | | void register_function_array_remove(SimpleFunctionFactory&); |
33 | | void register_function_array_sort(SimpleFunctionFactory&); |
34 | | void register_function_array_sortby(SimpleFunctionFactory&); |
35 | | void register_function_arrays_overlap(SimpleFunctionFactory&); |
36 | | void register_function_array_union(SimpleFunctionFactory&); |
37 | | void register_function_array_except(SimpleFunctionFactory&); |
38 | | void register_function_array_intersect(SimpleFunctionFactory&); |
39 | | void register_function_array_slice(SimpleFunctionFactory&); |
40 | | void register_function_array_difference(SimpleFunctionFactory&); |
41 | | void register_function_array_enumerate(SimpleFunctionFactory&); |
42 | | void register_function_array_enumerate_uniq(SimpleFunctionFactory&); |
43 | | void register_function_array_range(SimpleFunctionFactory&); |
44 | | void register_function_array_compact(SimpleFunctionFactory&); |
45 | | void register_function_array_pop(SimpleFunctionFactory&); |
46 | | void register_function_array_with_constant(SimpleFunctionFactory&); |
47 | | void register_function_array_constructor(SimpleFunctionFactory&); |
48 | | void register_function_array_apply(SimpleFunctionFactory&); |
49 | | void register_function_array_concat(SimpleFunctionFactory&); |
50 | | void register_function_array_zip(SimpleFunctionFactory&); |
51 | | void register_function_array_pushfront(SimpleFunctionFactory& factory); |
52 | | void register_function_array_pushback(SimpleFunctionFactory& factory); |
53 | | void register_function_array_first_or_last_index(SimpleFunctionFactory& factory); |
54 | | void register_function_array_cum_sum(SimpleFunctionFactory& factory); |
55 | | void register_function_array_count(SimpleFunctionFactory&); |
56 | | void register_function_array_filter_function(SimpleFunctionFactory&); |
57 | | void register_function_array_splits(SimpleFunctionFactory&); |
58 | | void register_function_array_contains_all(SimpleFunctionFactory&); |
59 | | void register_function_array_match(SimpleFunctionFactory&); |
60 | | |
61 | 1 | void register_function_array(SimpleFunctionFactory& factory) { |
62 | 1 | register_function_array_flatten(factory); |
63 | 1 | register_function_array_shuffle(factory); |
64 | 1 | register_function_array_exists(factory); |
65 | 1 | register_function_array_element(factory); |
66 | 1 | register_function_array_index(factory); |
67 | 1 | register_function_array_aggregation(factory); |
68 | 1 | register_function_array_distance(factory); |
69 | 1 | register_function_array_distinct(factory); |
70 | 1 | register_function_array_remove(factory); |
71 | 1 | register_function_array_sort(factory); |
72 | 1 | register_function_array_sortby(factory); |
73 | 1 | register_function_arrays_overlap(factory); |
74 | 1 | register_function_array_union(factory); |
75 | 1 | register_function_array_except(factory); |
76 | 1 | register_function_array_intersect(factory); |
77 | 1 | register_function_array_slice(factory); |
78 | 1 | register_function_array_difference(factory); |
79 | 1 | register_function_array_enumerate(factory); |
80 | 1 | register_function_array_enumerate_uniq(factory); |
81 | 1 | register_function_array_range(factory); |
82 | 1 | register_function_array_compact(factory); |
83 | 1 | register_function_array_pop(factory); |
84 | 1 | register_function_array_with_constant(factory); |
85 | 1 | register_function_array_constructor(factory); |
86 | 1 | register_function_array_apply(factory); |
87 | 1 | register_function_array_concat(factory); |
88 | 1 | register_function_array_zip(factory); |
89 | 1 | register_function_array_pushfront(factory); |
90 | 1 | register_function_array_pushback(factory); |
91 | 1 | register_function_array_first_or_last_index(factory); |
92 | 1 | register_function_array_cum_sum(factory); |
93 | 1 | register_function_array_count(factory); |
94 | 1 | register_function_array_filter_function(factory); |
95 | 1 | register_function_array_splits(factory); |
96 | 1 | register_function_array_contains_all(factory); |
97 | 1 | register_function_array_match(factory); |
98 | 1 | } |
99 | | |
100 | | } // namespace doris |