15 package com.cloudera.impala.catalog;
17 import java.util.ArrayList;
28 import com.cloudera.impala.builtins.ScalarBuiltins;
29 import com.google.common.collect.ImmutableMap;
30 import com.google.common.collect.Lists;
47 ArithmeticExpr.initBuiltins(
this);
48 BinaryPredicate.initBuiltins(
this);
49 CastExpr.initBuiltins(
this);
50 CaseExpr.initBuiltins(
this);
51 CompoundPredicate.initBuiltins(
this);
52 InPredicate.initBuiltins(
this);
53 IsNullPredicate.initBuiltins(
this);
54 LikePredicate.initBuiltins(
this);
55 ScalarBuiltins.initBuiltins(
this);
59 ImmutableMap.<
Type, String>builder()
61 "19ReservoirSampleInitIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
63 "19ReservoirSampleInitIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
65 "19ReservoirSampleInitIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
67 "19ReservoirSampleInitIN10impala_udf6IntValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
69 "19ReservoirSampleInitIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
71 "19ReservoirSampleInitIN10impala_udf8FloatValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
73 "19ReservoirSampleInitIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
75 "19ReservoirSampleInitIN10impala_udf9StringValEEEvPNS2_15FunctionContextEPS3_")
77 "19ReservoirSampleInitIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
79 "19ReservoirSampleInitIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextEPNS2_9StringValE")
83 ImmutableMap.<
Type, String>builder()
85 "24ReservoirSampleSerializeIN10impala_udf10BooleanValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
87 "24ReservoirSampleSerializeIN10impala_udf10TinyIntValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
89 "24ReservoirSampleSerializeIN10impala_udf11SmallIntValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
91 "24ReservoirSampleSerializeIN10impala_udf6IntValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
93 "24ReservoirSampleSerializeIN10impala_udf9BigIntValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
95 "24ReservoirSampleSerializeIN10impala_udf8FloatValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
97 "24ReservoirSampleSerializeIN10impala_udf9DoubleValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
99 "24ReservoirSampleSerializeIN10impala_udf9StringValEEEKS3_PNS2_15FunctionContextERS4_")
101 "24ReservoirSampleSerializeIN10impala_udf12TimestampValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
103 "24ReservoirSampleSerializeIN10impala_udf10DecimalValEEEKNS2_9StringValEPNS2_15FunctionContextERS5_")
107 ImmutableMap.<
Type, String>builder()
109 "20ReservoirSampleMergeIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
111 "20ReservoirSampleMergeIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
113 "20ReservoirSampleMergeIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
115 "20ReservoirSampleMergeIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
117 "20ReservoirSampleMergeIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
119 "20ReservoirSampleMergeIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
121 "20ReservoirSampleMergeIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
123 "20ReservoirSampleMergeIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKS3_PS3_")
125 "20ReservoirSampleMergeIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
127 "20ReservoirSampleMergeIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKNS2_9StringValEPS6_")
131 ImmutableMap.<
Type, String>builder()
133 "21ReservoirSampleUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
135 "21ReservoirSampleUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
137 "21ReservoirSampleUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
139 "21ReservoirSampleUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
141 "21ReservoirSampleUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
143 "21ReservoirSampleUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
145 "21ReservoirSampleUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
147 "21ReservoirSampleUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS3_")
149 "21ReservoirSampleUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
151 "21ReservoirSampleUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
155 ImmutableMap.<
Type, String>builder()
157 "23ReservoirSampleFinalizeIN10impala_udf10BooleanValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
159 "23ReservoirSampleFinalizeIN10impala_udf10TinyIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
161 "23ReservoirSampleFinalizeIN10impala_udf11SmallIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
163 "23ReservoirSampleFinalizeIN10impala_udf6IntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
165 "23ReservoirSampleFinalizeIN10impala_udf9BigIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
167 "23ReservoirSampleFinalizeIN10impala_udf8FloatValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
169 "23ReservoirSampleFinalizeIN10impala_udf9DoubleValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
171 "23ReservoirSampleFinalizeIN10impala_udf9StringValEEES3_PNS2_15FunctionContextERKS3_")
173 "23ReservoirSampleFinalizeIN10impala_udf12TimestampValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
175 "23ReservoirSampleFinalizeIN10impala_udf10DecimalValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
179 ImmutableMap.<
Type, String>builder()
181 "18AppxMedianFinalizeIN10impala_udf10BooleanValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
183 "18AppxMedianFinalizeIN10impala_udf10DecimalValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
185 "18AppxMedianFinalizeIN10impala_udf10TinyIntValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
187 "18AppxMedianFinalizeIN10impala_udf11SmallIntValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
189 "18AppxMedianFinalizeIN10impala_udf12TimestampValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
191 "18AppxMedianFinalizeIN10impala_udf6IntValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
193 "18AppxMedianFinalizeIN10impala_udf8FloatValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
195 "18AppxMedianFinalizeIN10impala_udf9BigIntValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
197 "18AppxMedianFinalizeIN10impala_udf9DoubleValEEET_PNS2_15FunctionContextERKNS2_9StringValE")
199 "18AppxMedianFinalizeIN10impala_udf9StringValEEET_PNS2_15FunctionContextERKS3_")
203 ImmutableMap.<
Type, String>builder()
205 "17HistogramFinalizeIN10impala_udf10BooleanValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
207 "17HistogramFinalizeIN10impala_udf10TinyIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
209 "17HistogramFinalizeIN10impala_udf11SmallIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
211 "17HistogramFinalizeIN10impala_udf6IntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
213 "17HistogramFinalizeIN10impala_udf9BigIntValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
215 "17HistogramFinalizeIN10impala_udf8FloatValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
217 "17HistogramFinalizeIN10impala_udf9DoubleValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
219 "17HistogramFinalizeIN10impala_udf9StringValEEES3_PNS2_15FunctionContextERKS3_")
221 "17HistogramFinalizeIN10impala_udf12TimestampValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
223 "17HistogramFinalizeIN10impala_udf10DecimalValEEENS2_9StringValEPNS2_15FunctionContextERKS4_")
227 ImmutableMap.<
Type, String>builder()
229 "9HllUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
231 "9HllUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
233 "9HllUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
235 "9HllUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
237 "9HllUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
239 "9HllUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
241 "9HllUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
243 "9HllUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS3_")
245 "9HllUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
247 "9HllUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
251 ImmutableMap.<
Type, String>builder()
253 "8PcUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
255 "8PcUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
257 "8PcUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
259 "8PcUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
261 "8PcUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
263 "8PcUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
265 "8PcUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
267 "8PcUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS3_")
269 "8PcUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
271 "8PcUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
275 ImmutableMap.<
Type, String>builder()
277 "10PcsaUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
279 "10PcsaUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
281 "10PcsaUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
283 "10PcsaUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
285 "10PcsaUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
287 "10PcsaUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
289 "10PcsaUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
291 "10PcsaUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS3_")
293 "10PcsaUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
295 "10PcsaUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
299 ImmutableMap.<
Type, String>builder()
301 "3MinIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PS6_")
303 "3MinIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PS6_")
305 "3MinIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PS6_")
307 "3MinIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PS6_")
309 "3MinIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PS6_")
311 "3MinIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PS6_")
313 "3MinIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PS6_")
315 "3MinIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS6_")
317 "3MinIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PS6_")
319 "3MinIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PS6_")
323 ImmutableMap.<
Type, String>builder()
325 "3MaxIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PS6_")
327 "3MaxIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PS6_")
329 "3MaxIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PS6_")
331 "3MaxIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PS6_")
333 "3MaxIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PS6_")
335 "3MaxIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PS6_")
337 "3MaxIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PS6_")
339 "3MaxIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS6_")
341 "3MaxIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PS6_")
343 "3MaxIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PS6_")
347 ImmutableMap.<
Type, String>builder()
349 "14KnuthVarUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
351 "14KnuthVarUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
353 "14KnuthVarUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
355 "14KnuthVarUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
357 "14KnuthVarUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
359 "14KnuthVarUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE")
362 ImmutableMap.<
Type, String>builder()
364 "12OffsetFnInitIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextEPT_")
366 "12OffsetFnInitIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextEPT_")
368 "12OffsetFnInitIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextEPT_")
370 "12OffsetFnInitIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextEPT_")
372 "12OffsetFnInitIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextEPT_")
374 "12OffsetFnInitIN10impala_udf6IntValEEEvPNS2_15FunctionContextEPT_")
376 "12OffsetFnInitIN10impala_udf8FloatValEEEvPNS2_15FunctionContextEPT_")
378 "12OffsetFnInitIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextEPT_")
380 "12OffsetFnInitIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextEPT_")
382 "12OffsetFnInitIN10impala_udf9StringValEEEvPNS2_15FunctionContextEPT_")
386 ImmutableMap.<
Type, String>builder()
388 "14OffsetFnUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
390 "14OffsetFnUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
392 "14OffsetFnUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
394 "14OffsetFnUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
396 "14OffsetFnUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
398 "14OffsetFnUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
400 "14OffsetFnUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
402 "14OffsetFnUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_RKS3_S8_PS6_")
404 "14OffsetFnUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
406 "14OffsetFnUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValES8_PS6_")
410 ImmutableMap.<
Type, String>builder()
412 "13LastValUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PS6_")
414 "13LastValUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PS6_")
416 "13LastValUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PS6_")
418 "13LastValUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PS6_")
420 "13LastValUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PS6_")
422 "13LastValUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PS6_")
424 "13LastValUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PS6_")
426 "13LastValUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PS6_")
428 "13LastValUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PS6_")
430 "13LastValUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS6_")
434 ImmutableMap.<
Type, String>builder()
436 "21FirstValRewriteUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
438 "21FirstValRewriteUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
440 "21FirstValRewriteUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
442 "21FirstValRewriteUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
444 "21FirstValRewriteUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
446 "21FirstValRewriteUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
448 "21FirstValRewriteUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
450 "21FirstValRewriteUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_RKS3_PS6_")
452 "21FirstValRewriteUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
454 "21FirstValRewriteUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_RKNS2_9BigIntValEPS6_")
458 ImmutableMap.<
Type, String>builder()
460 "13LastValRemoveIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PS6_")
462 "13LastValRemoveIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PS6_")
464 "13LastValRemoveIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PS6_")
466 "13LastValRemoveIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PS6_")
468 "13LastValRemoveIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PS6_")
470 "13LastValRemoveIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PS6_")
472 "13LastValRemoveIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PS6_")
474 "13LastValRemoveIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PS6_")
476 "13LastValRemoveIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PS6_")
478 "13LastValRemoveIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS6_")
482 ImmutableMap.<
Type, String>builder()
484 "14FirstValUpdateIN10impala_udf10BooleanValEEEvPNS2_15FunctionContextERKT_PS6_")
486 "14FirstValUpdateIN10impala_udf10DecimalValEEEvPNS2_15FunctionContextERKT_PS6_")
488 "14FirstValUpdateIN10impala_udf10TinyIntValEEEvPNS2_15FunctionContextERKT_PS6_")
490 "14FirstValUpdateIN10impala_udf11SmallIntValEEEvPNS2_15FunctionContextERKT_PS6_")
492 "14FirstValUpdateIN10impala_udf12TimestampValEEEvPNS2_15FunctionContextERKT_PS6_")
494 "14FirstValUpdateIN10impala_udf6IntValEEEvPNS2_15FunctionContextERKT_PS6_")
496 "14FirstValUpdateIN10impala_udf8FloatValEEEvPNS2_15FunctionContextERKT_PS6_")
498 "14FirstValUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PS6_")
500 "14FirstValUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PS6_")
502 "14FirstValUpdateIN10impala_udf9StringValEEEvPNS2_15FunctionContextERKT_PS6_")
510 final String prefix =
"_ZN6impala18AggregateFunctions";
511 final String initNullString = prefix +
512 "14InitNullStringEPN10impala_udf15FunctionContextEPNS1_9StringValE";
513 final String initNull = prefix +
514 "8InitNullEPN10impala_udf15FunctionContextEPNS1_6AnyValE";
515 final String stringValSerializeOrFinalize = prefix +
516 "28StringValSerializeOrFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE";
517 final String stringValGetValue = prefix +
518 "17StringValGetValueEPN10impala_udf15FunctionContextERKNS1_9StringValE";
522 db.addBuiltin(AggregateFunction.createBuiltin(db,
"count",
524 prefix +
"8InitZeroIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextEPT_",
525 prefix +
"15CountStarUpdateEPN10impala_udf15FunctionContextEPNS1_9BigIntValE",
526 prefix +
"10CountMergeEPN10impala_udf15FunctionContextERKNS1_9BigIntValEPS4_",
528 prefix +
"15CountStarRemoveEPN10impala_udf15FunctionContextEPNS1_9BigIntValE",
529 null,
false,
true,
true));
532 if (t.isNull())
continue;
536 db.addBuiltin(AggregateFunction.createBuiltin(db,
"count",
538 prefix +
"8InitZeroIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextEPT_",
539 prefix +
"11CountUpdateEPN10impala_udf15FunctionContextERKNS1_6AnyValEPNS1_9BigIntValE",
540 prefix +
"10CountMergeEPN10impala_udf15FunctionContextERKNS1_9BigIntValEPS4_",
542 prefix +
"11CountRemoveEPN10impala_udf15FunctionContextERKNS1_6AnyValEPNS1_9BigIntValE",
543 null,
false,
true,
true));
546 String minMaxInit = t.isStringType() ? initNullString : initNull;
547 String minMaxSerializeOrFinalize = t.isStringType() ?
548 stringValSerializeOrFinalize : null;
549 String minMaxGetValue = t.isStringType() ? stringValGetValue : null;
550 db.addBuiltin(AggregateFunction.createBuiltin(db,
"min",
551 Lists.newArrayList(t), t, t, minMaxInit,
553 prefix + MIN_UPDATE_SYMBOL.get(t),
554 minMaxSerializeOrFinalize, minMaxGetValue,
555 null, minMaxSerializeOrFinalize,
true,
true,
false));
557 db.addBuiltin(AggregateFunction.createBuiltin(db,
"max",
558 Lists.newArrayList(t), t, t, minMaxInit,
560 prefix + MAX_UPDATE_SYMBOL.get(t),
561 minMaxSerializeOrFinalize, minMaxGetValue,
562 null, minMaxSerializeOrFinalize,
true,
true,
false));
564 db.addBuiltin(AggregateFunction.createBuiltin(db,
"sample",
567 prefix + SAMPLE_UPDATE_SYMBOL.get(t),
569 prefix + SAMPLE_SERIALIZE_SYMBOL.get(t),
571 false,
false,
true));
574 db.addBuiltin(AggregateFunction.createBuiltin(db,
"appx_median",
577 prefix + SAMPLE_UPDATE_SYMBOL.get(t),
579 prefix + SAMPLE_SERIALIZE_SYMBOL.get(t),
581 false,
false,
true));
584 db.addBuiltin(AggregateFunction.createBuiltin(db,
"histogram",
587 prefix + SAMPLE_UPDATE_SYMBOL.get(t),
589 prefix + SAMPLE_SERIALIZE_SYMBOL.get(t),
591 false,
false,
true));
595 db.addBuiltin(AggregateFunction.createBuiltin(db,
"ndv",
597 prefix +
"7HllInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
599 prefix +
"8HllMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
600 stringValSerializeOrFinalize,
601 prefix +
"11HllFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
604 db.addBuiltin(AggregateFunction.createBuiltin(db,
"ndv_no_finalize",
606 prefix +
"7HllInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
608 prefix +
"8HllMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
609 stringValSerializeOrFinalize,
610 "_Z20IncrementNdvFinalizePN10impala_udf15FunctionContextERKNS_9StringValE",
615 db.addBuiltin(AggregateFunction.createBuiltin(db,
"distinctpc",
617 prefix +
"6PcInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
619 prefix +
"7PcMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
620 stringValSerializeOrFinalize,
621 prefix +
"10PcFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
622 false,
false,
true));
626 db.addBuiltin(AggregateFunction.createBuiltin(db,
"distinctpcsa",
628 prefix +
"6PcInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
630 prefix +
"7PcMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
631 stringValSerializeOrFinalize,
632 prefix +
"12PcsaFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
633 false,
false,
true));
636 db.addBuiltin(AggregateFunction.createBuiltin(db,
"stddev",
638 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
639 prefix + STDDEV_UPDATE_SYMBOL.get(t),
640 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
642 prefix +
"19KnuthStddevFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
643 false,
false,
false));
644 db.addBuiltin(AggregateFunction.createBuiltin(db,
"stddev_samp",
646 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
647 prefix + STDDEV_UPDATE_SYMBOL.get(t),
648 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
650 prefix +
"19KnuthStddevFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
651 false,
false,
false));
652 db.addBuiltin(AggregateFunction.createBuiltin(db,
"stddev_pop",
654 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
655 prefix + STDDEV_UPDATE_SYMBOL.get(t),
656 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
658 prefix +
"22KnuthStddevPopFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
659 false,
false,
false));
660 db.addBuiltin(AggregateFunction.createBuiltin(db,
"variance",
662 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
663 prefix + STDDEV_UPDATE_SYMBOL.get(t),
664 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
666 prefix +
"16KnuthVarFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
667 false,
false,
false));
668 db.addBuiltin(AggregateFunction.createBuiltin(db,
"variance_samp",
670 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
671 prefix + STDDEV_UPDATE_SYMBOL.get(t),
672 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
674 prefix +
"16KnuthVarFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
675 false,
false,
false));
676 db.addBuiltin(AggregateFunction.createBuiltin(db,
"var_samp",
678 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
679 prefix + STDDEV_UPDATE_SYMBOL.get(t),
680 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
682 prefix +
"16KnuthVarFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
683 false,
false,
false));
684 db.addBuiltin(AggregateFunction.createBuiltin(db,
"variance_pop",
686 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
687 prefix + STDDEV_UPDATE_SYMBOL.get(t),
688 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
690 prefix +
"19KnuthVarPopFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
691 false,
false,
false));
692 db.addBuiltin(AggregateFunction.createBuiltin(db,
"var_pop",
694 prefix +
"12KnuthVarInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
695 prefix + STDDEV_UPDATE_SYMBOL.get(t),
696 prefix +
"13KnuthVarMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
698 prefix +
"19KnuthVarPopFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
699 false,
false,
false));
704 db.addBuiltin(AggregateFunction.createBuiltin(db,
"sum",
706 prefix +
"9SumUpdateIN10impala_udf9BigIntValES3_EEvPNS2_15FunctionContextERKT_PT0_",
707 prefix +
"9SumUpdateIN10impala_udf9BigIntValES3_EEvPNS2_15FunctionContextERKT_PT0_",
709 prefix +
"9SumRemoveIN10impala_udf9BigIntValES3_EEvPNS2_15FunctionContextERKT_PT0_",
710 null,
false,
true,
false));
711 db.addBuiltin(AggregateFunction.createBuiltin(db,
"sum",
713 prefix +
"9SumUpdateIN10impala_udf9DoubleValES3_EEvPNS2_15FunctionContextERKT_PT0_",
714 prefix +
"9SumUpdateIN10impala_udf9DoubleValES3_EEvPNS2_15FunctionContextERKT_PT0_",
716 prefix +
"9SumRemoveIN10impala_udf9DoubleValES3_EEvPNS2_15FunctionContextERKT_PT0_",
717 null,
false,
true,
false));
718 db.addBuiltin(AggregateFunction.createBuiltin(db,
"sum",
720 prefix +
"16SumDecimalUpdateEPN10impala_udf15FunctionContextERKNS1_10DecimalValEPS4_",
721 prefix +
"15SumDecimalMergeEPN10impala_udf15FunctionContextERKNS1_10DecimalValEPS4_",
723 prefix +
"16SumDecimalRemoveEPN10impala_udf15FunctionContextERKNS1_10DecimalValEPS4_",
724 null,
false,
true,
false));
728 db.addBuiltin(AggregateFunction.createBuiltin(db,
"avg",
730 prefix +
"7AvgInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
731 prefix +
"9AvgUpdateIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE",
732 prefix +
"8AvgMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
733 stringValSerializeOrFinalize,
734 prefix +
"11AvgGetValueEPN10impala_udf15FunctionContextERKNS1_9StringValE",
735 prefix +
"9AvgRemoveIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE",
736 prefix +
"11AvgFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
737 false,
true,
false));
738 db.addBuiltin(AggregateFunction.createBuiltin(db,
"avg",
740 prefix +
"7AvgInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
741 prefix +
"9AvgUpdateIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE",
742 prefix +
"8AvgMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
743 stringValSerializeOrFinalize,
744 prefix +
"11AvgGetValueEPN10impala_udf15FunctionContextERKNS1_9StringValE",
745 prefix +
"9AvgRemoveIN10impala_udf9DoubleValEEEvPNS2_15FunctionContextERKT_PNS2_9StringValE",
746 prefix +
"11AvgFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
747 false,
true,
false));
748 db.addBuiltin(AggregateFunction.createBuiltin(db,
"avg",
750 prefix +
"14DecimalAvgInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
751 prefix +
"16DecimalAvgUpdateEPN10impala_udf15FunctionContextERKNS1_10DecimalValEPNS1_9StringValE",
752 prefix +
"15DecimalAvgMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
753 stringValSerializeOrFinalize,
754 prefix +
"18DecimalAvgGetValueEPN10impala_udf15FunctionContextERKNS1_9StringValE",
755 prefix +
"16DecimalAvgRemoveEPN10impala_udf15FunctionContextERKNS1_10DecimalValEPNS1_9StringValE",
756 prefix +
"18DecimalAvgFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
757 false,
true,
false));
759 db.addBuiltin(AggregateFunction.createBuiltin(db,
"avg",
761 prefix +
"7AvgInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
762 prefix +
"18TimestampAvgUpdateEPN10impala_udf15FunctionContextERKNS1_12TimestampValEPNS1_9StringValE",
763 prefix +
"8AvgMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
764 stringValSerializeOrFinalize,
765 prefix +
"20TimestampAvgGetValueEPN10impala_udf15FunctionContextERKNS1_9StringValE",
766 prefix +
"18TimestampAvgRemoveEPN10impala_udf15FunctionContextERKNS1_12TimestampValEPNS1_9StringValE",
767 prefix +
"20TimestampAvgFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
768 false,
true,
false));
771 db.addBuiltin(AggregateFunction.createBuiltin(db,
"group_concat",
774 "18StringConcatUpdateEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
776 "17StringConcatMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
777 stringValSerializeOrFinalize,
779 "20StringConcatFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
780 false,
false,
false));
782 db.addBuiltin(AggregateFunction.createBuiltin(db,
"group_concat",
786 "18StringConcatUpdateEPN10impala_udf15FunctionContextERKNS1_9StringValES6_PS4_",
788 "17StringConcatMergeEPN10impala_udf15FunctionContextERKNS1_9StringValEPS4_",
789 stringValSerializeOrFinalize,
791 "20StringConcatFinalizeEPN10impala_udf15FunctionContextERKNS1_9StringValE",
792 false,
false,
false));
796 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(db,
"rank",
798 prefix +
"8RankInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
799 prefix +
"10RankUpdateEPN10impala_udf15FunctionContextEPNS1_9StringValE",
801 prefix +
"12RankGetValueEPN10impala_udf15FunctionContextERNS1_9StringValE",
802 prefix +
"12RankFinalizeEPN10impala_udf15FunctionContextERNS1_9StringValE"));
804 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(db,
"dense_rank",
806 prefix +
"8RankInitEPN10impala_udf15FunctionContextEPNS1_9StringValE",
807 prefix +
"15DenseRankUpdateEPN10impala_udf15FunctionContextEPNS1_9StringValE",
809 prefix +
"17DenseRankGetValueEPN10impala_udf15FunctionContextERNS1_9StringValE",
810 prefix +
"12RankFinalizeEPN10impala_udf15FunctionContextERNS1_9StringValE"));
811 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
813 prefix +
"8InitZeroIN10impala_udf9BigIntValEEEvPNS2_15FunctionContextEPT_",
814 prefix +
"15CountStarUpdateEPN10impala_udf15FunctionContextEPNS1_9BigIntValE",
815 prefix +
"10CountMergeEPN10impala_udf15FunctionContextERKNS1_9BigIntValEPS4_",
819 if (t.isNull())
continue;
822 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
823 db,
"first_value", Lists.newArrayList(t), t, t,
824 t.isStringType() ? initNullString : initNull,
825 prefix + FIRST_VALUE_UPDATE_SYMBOL.get(t),
828 t ==
Type.
STRING ? stringValSerializeOrFinalize : null));
830 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
831 db,
"first_value_rewrite", Lists.newArrayList(t,
Type.BIGINT), t, t,
832 t.isStringType() ? initNullString : initNull,
833 prefix + FIRST_VALUE_REWRITE_UPDATE_SYMBOL.get(t),
836 t ==
Type.
STRING ? stringValSerializeOrFinalize : null,
839 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
840 db,
"last_value", Lists.newArrayList(t), t, t,
841 t.isStringType() ? initNullString : initNull,
842 prefix + LAST_VALUE_UPDATE_SYMBOL.get(t),
844 t == Type.STRING ? stringValGetValue : null,
845 t == Type.STRING ? stringValSerializeOrFinalize : null));
847 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
848 db,
"lag", Lists.newArrayList(t,
Type.BIGINT, t), t, t,
850 prefix + OFFSET_FN_UPDATE_SYMBOL.get(t),
852 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
853 db,
"lead", Lists.newArrayList(t,
Type.BIGINT, t), t, t,
855 prefix + OFFSET_FN_UPDATE_SYMBOL.get(t),
860 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
861 db,
"lag", Lists.newArrayList(t), t, t));
862 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
863 db,
"lag", Lists.newArrayList(t,
Type.BIGINT), t, t));
864 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
865 db,
"lead", Lists.newArrayList(t), t, t));
866 db.addBuiltin(AggregateFunction.createAnalyticBuiltin(
867 db,
"lead", Lists.newArrayList(t,
Type.BIGINT), t, t));
static final Map< Type, String > HISTOGRAM_FINALIZE_SYMBOL
static final ScalarType BIGINT
static final Map< Type, String > STDDEV_UPDATE_SYMBOL
static final Map< Type, String > FIRST_VALUE_UPDATE_SYMBOL
void initAggregateBuiltins()
static final Map< Type, String > PC_UPDATE_SYMBOL
static final Map< Type, String > MAX_UPDATE_SYMBOL
static final ScalarType STRING
static final Map< Type, String > SAMPLE_FINALIZE_SYMBOL
static final Map< Type, String > OFFSET_FN_UPDATE_SYMBOL
BuiltinsDb(String name, Catalog catalog)
static final Map< Type, String > PCSA_UPDATE_SYMBOL
static final Map< Type, String > OFFSET_FN_INIT_SYMBOL
static final Map< Type, String > MIN_UPDATE_SYMBOL
static final ScalarType BOOLEAN
static final ScalarType SMALLINT
static ScalarType createCharType(int len)
static final ScalarType FLOAT
static final Map< Type, String > HLL_UPDATE_SYMBOL
static final Map< Type, String > SAMPLE_UPDATE_SYMBOL
static final Map< Type, String > FIRST_VALUE_REWRITE_UPDATE_SYMBOL
static final ScalarType DOUBLE
static final Map< Type, String > SAMPLE_MERGE_SYMBOL
static final ScalarType TINYINT
static final ScalarType INT
static final ScalarType DECIMAL
static final Map< Type, String > LAST_VALUE_REMOVE_SYMBOL
static final Map< Type, String > SAMPLE_INIT_SYMBOL
static final Map< Type, String > APPX_MEDIAN_FINALIZE_SYMBOL
static final Map< Type, String > LAST_VALUE_UPDATE_SYMBOL
static final Map< Type, String > SAMPLE_SERIALIZE_SYMBOL
static final ScalarType TIMESTAMP
static ArrayList< ScalarType > getSupportedTypes()
void setIsSystemDb(boolean b)