Coverage Report

Created: 2026-07-08 14:26

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exprs/aggregate/aggregate_function_window.h
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/Processors/Transforms/WindowTransform.h
19
// and modified by Doris
20
21
#pragma once
22
23
#include <glog/logging.h>
24
25
#include <algorithm>
26
#include <boost/iterator/iterator_facade.hpp>
27
#include <cstdint>
28
#include <memory>
29
30
#include "core/assert_cast.h"
31
#include "core/column/column.h"
32
#include "core/column/column_nullable.h"
33
#include "core/column/column_vector.h"
34
#include "core/data_type/data_type_number.h"
35
#include "core/string_ref.h"
36
#include "core/types.h"
37
#include "exprs/aggregate/aggregate_function.h"
38
#include "exprs/aggregate/aggregate_function_reader_first_last.h"
39
40
namespace doris {
41
class Arena;
42
class BufferReadable;
43
class BufferWritable;
44
45
struct RowNumberData {
46
    int64_t count = 0;
47
};
48
49
class WindowFunctionRowNumber final
50
        : public IAggregateFunctionDataHelper<RowNumberData, WindowFunctionRowNumber> {
51
public:
52
    WindowFunctionRowNumber(const DataTypes& argument_types_)
53
223
            : IAggregateFunctionDataHelper(argument_types_) {}
54
55
783
    String get_name() const override { return "row_number"; }
56
57
28.0k
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
58
59
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {
60
0
        ++data(place).count;
61
0
    }
62
63
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
64
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
65
27.0k
                                Arena&, UInt8*, UInt8*) const override {
66
27.0k
        ++data(place).count;
67
27.0k
    }
68
69
377
    void reset(AggregateDataPtr place) const override {
70
377
        WindowFunctionRowNumber::data(place).count = 0;
71
377
    }
72
73
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
74
0
        assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
75
0
                doris::WindowFunctionRowNumber::data(place).count);
76
0
    }
77
78
784
    bool result_column_could_resize() const override { return true; }
79
80
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
81
27.0k
                                  const size_t start, const size_t end) const override {
82
27.0k
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
83
54.0k
        for (size_t i = start; i < end; ++i) {
84
27.0k
            column.get_data()[i] = (doris::WindowFunctionRowNumber::data(place).count);
85
27.0k
        }
86
27.0k
    }
87
88
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
89
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
90
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
91
};
92
93
struct RankData {
94
    int64_t rank = 0;
95
    int64_t count = 1;
96
    int64_t peer_group_start = -1;
97
};
98
99
class WindowFunctionRank final : public IAggregateFunctionDataHelper<RankData, WindowFunctionRank> {
100
public:
101
    WindowFunctionRank(const DataTypes& argument_types_)
102
178
            : IAggregateFunctionDataHelper(argument_types_) {}
103
104
750
    String get_name() const override { return "rank"; }
105
106
2.02k
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
107
108
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {
109
0
        ++data(place).rank;
110
0
    }
111
112
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
113
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
114
1.08k
                                Arena&, UInt8*, UInt8*) const override {
115
1.08k
        int64_t peer_group_count = frame_end - frame_start;
116
1.08k
        if (WindowFunctionRank::data(place).peer_group_start != frame_start) {
117
1.08k
            WindowFunctionRank::data(place).peer_group_start = frame_start;
118
1.08k
            WindowFunctionRank::data(place).rank += WindowFunctionRank::data(place).count;
119
1.08k
        }
120
1.08k
        WindowFunctionRank::data(place).count = peer_group_count;
121
1.08k
    }
122
123
571
    void reset(AggregateDataPtr place) const override {
124
571
        WindowFunctionRank::data(place).rank = 0;
125
571
        WindowFunctionRank::data(place).count = 1;
126
571
        WindowFunctionRank::data(place).peer_group_start = -1;
127
571
    }
128
129
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
130
0
        assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
131
0
                data(place).rank);
132
0
    }
133
134
752
    bool result_column_could_resize() const override { return true; }
135
136
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
137
1.09k
                                  const size_t start, const size_t end) const override {
138
1.09k
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
139
2.89k
        for (size_t i = start; i < end; ++i) {
140
1.80k
            column.get_data()[i] = (doris::WindowFunctionRank::data(place).rank);
141
1.80k
        }
142
1.09k
    }
143
144
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
145
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
146
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
147
};
148
149
struct DenseRankData {
150
    int64_t rank = 0;
151
    int64_t peer_group_start = -1;
152
};
153
154
class WindowFunctionDenseRank final
155
        : public IAggregateFunctionDataHelper<DenseRankData, WindowFunctionDenseRank> {
156
public:
157
    WindowFunctionDenseRank(const DataTypes& argument_types_)
158
11
            : IAggregateFunctionDataHelper(argument_types_) {}
159
160
54
    String get_name() const override { return "dense_rank"; }
161
162
137
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
163
164
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {
165
0
        ++data(place).rank;
166
0
    }
167
168
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
169
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
170
71
                                Arena&, UInt8*, UInt8*) const override {
171
71
        if (WindowFunctionDenseRank::data(place).peer_group_start != frame_start) {
172
71
            WindowFunctionDenseRank::data(place).peer_group_start = frame_start;
173
71
            WindowFunctionDenseRank::data(place).rank++;
174
71
        }
175
71
    }
176
177
36
    void reset(AggregateDataPtr place) const override {
178
36
        WindowFunctionDenseRank::data(place).rank = 0;
179
36
        WindowFunctionDenseRank::data(place).peer_group_start = -1;
180
36
    }
181
182
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
183
0
        assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
184
0
                data(place).rank);
185
0
    }
186
187
56
    bool result_column_could_resize() const override { return true; }
188
189
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
190
71
                                  const size_t start, const size_t end) const override {
191
71
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
192
172
        for (size_t i = start; i < end; ++i) {
193
101
            column.get_data()[i] = (doris::WindowFunctionDenseRank::data(place).rank);
194
101
        }
195
71
    }
196
197
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
198
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
199
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
200
};
201
202
struct PercentRankData {
203
    int64_t rank = 0;
204
    int64_t count = 1;
205
    int64_t peer_group_start = -1;
206
    int64_t partition_size = 0;
207
};
208
209
class WindowFunctionPercentRank final
210
        : public IAggregateFunctionDataHelper<PercentRankData, WindowFunctionPercentRank> {
211
private:
212
87
    static double _cal_percent(int64_t rank, int64_t total_rows) {
213
87
        return total_rows <= 1 ? 0.0 : double(rank - 1) * 1.0 / double(total_rows - 1);
214
87
    }
215
216
public:
217
    WindowFunctionPercentRank(const DataTypes& argument_types_)
218
8
            : IAggregateFunctionDataHelper(argument_types_) {}
219
220
51
    String get_name() const override { return "percent_rank"; }
221
222
146
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeFloat64>(); }
223
224
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {}
225
226
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
227
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
228
87
                                Arena&, UInt8*, UInt8*) const override {
229
87
        int64_t peer_group_count = frame_end - frame_start;
230
87
        if (WindowFunctionPercentRank::data(place).peer_group_start != frame_start) {
231
87
            WindowFunctionPercentRank::data(place).peer_group_start = frame_start;
232
87
            WindowFunctionPercentRank::data(place).rank +=
233
87
                    WindowFunctionPercentRank::data(place).count;
234
            // some variables are partition related, but there is no chance to init them
235
            // when the new partition arrives, so we calculate them every time now.
236
87
            WindowFunctionPercentRank::data(place).partition_size = partition_end - partition_start;
237
87
        }
238
87
        WindowFunctionPercentRank::data(place).count = peer_group_count;
239
87
    }
240
241
61
    void reset(AggregateDataPtr place) const override {
242
61
        WindowFunctionPercentRank::data(place).rank = 0;
243
61
        WindowFunctionPercentRank::data(place).count = 1;
244
61
        WindowFunctionPercentRank::data(place).peer_group_start = -1;
245
61
        WindowFunctionPercentRank::data(place).partition_size = 0;
246
61
    }
247
248
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
249
0
        auto percent_rank = _cal_percent(data(place).rank, data(place).partition_size);
250
0
        assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
251
0
                percent_rank);
252
0
    }
253
254
51
    bool result_column_could_resize() const override { return true; }
255
256
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
257
87
                                  const size_t start, const size_t end) const override {
258
87
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
259
87
        auto percent_rank = _cal_percent(data(place).rank, data(place).partition_size);
260
196
        for (size_t i = start; i < end; ++i) {
261
109
            column.get_data()[i] = percent_rank;
262
109
        }
263
87
    }
264
265
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
266
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
267
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
268
};
269
270
struct CumeDistData {
271
    int64_t numerator = 0;
272
    int64_t denominator = 0;
273
    int64_t peer_group_start = -1;
274
};
275
276
class WindowFunctionCumeDist final
277
        : public IAggregateFunctionDataHelper<CumeDistData, WindowFunctionCumeDist> {
278
private:
279
    static void check_default(AggregateDataPtr place, int64_t partition_start,
280
47
                              int64_t partition_end) {
281
47
        if (data(place).denominator == 0) {
282
21
            data(place).denominator = partition_end - partition_start;
283
21
        }
284
47
    }
285
286
public:
287
    WindowFunctionCumeDist(const DataTypes& argument_types_)
288
6
            : IAggregateFunctionDataHelper(argument_types_) {}
289
290
41
    String get_name() const override { return "cume_dist"; }
291
292
93
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeFloat64>(); }
293
294
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {}
295
296
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
297
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
298
47
                                Arena&, UInt8*, UInt8*) const override {
299
47
        check_default(place, partition_start, partition_end);
300
47
        int64_t peer_group_count = frame_end - frame_start;
301
47
        if (WindowFunctionCumeDist::data(place).peer_group_start != frame_start) {
302
47
            WindowFunctionCumeDist::data(place).peer_group_start = frame_start;
303
47
            WindowFunctionCumeDist::data(place).numerator += peer_group_count;
304
47
        }
305
47
    }
306
307
21
    void reset(AggregateDataPtr place) const override {
308
21
        WindowFunctionCumeDist::data(place).numerator = 0;
309
21
        WindowFunctionCumeDist::data(place).denominator = 0;
310
21
        WindowFunctionCumeDist::data(place).peer_group_start = -1;
311
21
    }
312
313
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
314
0
        auto cume_dist = (double)data(place).numerator * 1.0 / (double)data(place).denominator;
315
0
        assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
316
0
                cume_dist);
317
0
    }
318
319
41
    bool result_column_could_resize() const override { return true; }
320
321
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
322
47
                                  const size_t start, const size_t end) const override {
323
47
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
324
47
        auto cume_dist = (double)data(place).numerator * 1.0 / (double)data(place).denominator;
325
116
        for (size_t i = start; i < end; ++i) {
326
69
            column.get_data()[i] = cume_dist;
327
69
        }
328
47
    }
329
330
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
331
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
332
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
333
};
334
335
struct NTileData {
336
    int64_t bucket_index = 0;
337
    int64_t rows = 0;
338
};
339
340
class WindowFunctionNTile final
341
        : public IAggregateFunctionDataHelper<NTileData, WindowFunctionNTile>,
342
          UnaryExpression,
343
          NullableAggregateFunction {
344
public:
345
    WindowFunctionNTile(const DataTypes& argument_types_)
346
10
            : IAggregateFunctionDataHelper(argument_types_) {}
347
348
49
    String get_name() const override { return "ntile"; }
349
350
169
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
351
352
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {}
353
354
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
355
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
356
110
                                Arena&, UInt8*, UInt8*) const override {
357
        // some variables are partition related, but there is no chance to init them
358
        // when the new partition arrives, so we calculate them every time now.
359
        // Partition = big_bucket_num * big_bucket_size + small_bucket_num * small_bucket_size
360
110
        int64_t row_index = ++WindowFunctionNTile::data(place).rows - 1;
361
110
        int64_t bucket_num = columns[0]->get_int(0);
362
110
        int64_t partition_size = partition_end - partition_start;
363
364
110
        int64_t small_bucket_size = partition_size / bucket_num;
365
110
        int64_t big_bucket_num = partition_size % bucket_num;
366
110
        int64_t first_small_bucket_row_index = big_bucket_num * (small_bucket_size + 1);
367
110
        if (row_index >= first_small_bucket_row_index) {
368
            // small_bucket_size can't be zero
369
54
            WindowFunctionNTile::data(place).bucket_index =
370
54
                    big_bucket_num + 1 +
371
54
                    (row_index - first_small_bucket_row_index) / small_bucket_size;
372
56
        } else {
373
56
            WindowFunctionNTile::data(place).bucket_index = row_index / (small_bucket_size + 1) + 1;
374
56
        }
375
110
    }
376
377
29
    void reset(AggregateDataPtr place) const override { WindowFunctionNTile::data(place).rows = 0; }
378
379
0
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
380
0
        assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to).get_data().push_back(
381
0
                WindowFunctionNTile::data(place).bucket_index);
382
0
    }
383
384
49
    bool result_column_could_resize() const override { return true; }
385
386
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
387
110
                                  const size_t start, const size_t end) const override {
388
110
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
389
220
        for (size_t i = start; i < end; ++i) {
390
110
            column.get_data()[i] = WindowFunctionNTile::data(place).bucket_index;
391
110
        }
392
110
    }
393
394
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
395
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
396
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
397
};
398
399
template <bool result_is_nullable, bool arg_is_nullable>
400
struct FirstLastData
401
        : public ReaderFirstAndLastData<void, result_is_nullable, arg_is_nullable, false> {
402
public:
403
366
    void set_is_null() { this->_data_value.reset(); }
Unexecuted instantiation: _ZN5doris13FirstLastDataILb0ELb0EE11set_is_nullEv
Unexecuted instantiation: _ZN5doris13FirstLastDataILb0ELb1EE11set_is_nullEv
_ZN5doris13FirstLastDataILb1ELb0EE11set_is_nullEv
Line
Count
Source
403
209
    void set_is_null() { this->_data_value.reset(); }
_ZN5doris13FirstLastDataILb1ELb1EE11set_is_nullEv
Line
Count
Source
403
157
    void set_is_null() { this->_data_value.reset(); }
404
};
405
406
template <bool result_is_nullable, bool arg_is_nullable>
407
struct NthValueData : public FirstLastData<result_is_nullable, arg_is_nullable> {
408
public:
409
183
    void reset() {
410
183
        this->_data_value.reset();
411
183
        this->_has_value = false;
412
183
        this->_frame_start_pose = 0;
413
183
        this->_frame_total_rows = 0;
414
183
    }
Unexecuted instantiation: _ZN5doris12NthValueDataILb0ELb0EE5resetEv
Unexecuted instantiation: _ZN5doris12NthValueDataILb0ELb1EE5resetEv
Unexecuted instantiation: _ZN5doris12NthValueDataILb1ELb0EE5resetEv
_ZN5doris12NthValueDataILb1ELb1EE5resetEv
Line
Count
Source
409
183
    void reset() {
410
183
        this->_data_value.reset();
411
183
        this->_has_value = false;
412
183
        this->_frame_start_pose = 0;
413
183
        this->_frame_total_rows = 0;
414
183
    }
415
416
    int64_t _frame_start_pose = 0;
417
    int64_t _frame_total_rows = 0;
418
};
419
420
template <bool arg_is_nullable>
421
struct BaseValue : public Value<arg_is_nullable> {
422
public:
423
661
    bool is_null() const { return this->_ptr == nullptr; }
_ZNK5doris9BaseValueILb0EE7is_nullEv
Line
Count
Source
423
8
    bool is_null() const { return this->_ptr == nullptr; }
_ZNK5doris9BaseValueILb1EE7is_nullEv
Line
Count
Source
423
653
    bool is_null() const { return this->_ptr == nullptr; }
424
    // because _ptr pointer to first_argument or third argument, so it's difficult to cast ptr
425
    // so here will call virtual function
426
1.35k
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb0EE9get_valueEv
Line
Count
Source
426
895
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb1EE9get_valueEv
Line
Count
Source
426
458
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
427
};
428
429
template <bool result_is_nullable, bool arg_is_nullable>
430
struct LeadLagData {
431
public:
432
    static constexpr bool result_nullable = result_is_nullable;
433
334
    void reset() {
434
334
        _data_value.reset();
435
334
        _is_inited = false;
436
334
        _offset_value = 0;
437
334
    }
_ZN5doris11LeadLagDataILb0ELb0EE5resetEv
Line
Count
Source
433
164
    void reset() {
434
164
        _data_value.reset();
435
164
        _is_inited = false;
436
164
        _offset_value = 0;
437
164
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE5resetEv
_ZN5doris11LeadLagDataILb1ELb0EE5resetEv
Line
Count
Source
433
3
    void reset() {
434
3
        _data_value.reset();
435
3
        _is_inited = false;
436
3
        _offset_value = 0;
437
3
    }
_ZN5doris11LeadLagDataILb1ELb1EE5resetEv
Line
Count
Source
433
167
    void reset() {
434
167
        _data_value.reset();
435
167
        _is_inited = false;
436
167
        _offset_value = 0;
437
167
    }
438
439
1.55k
    void insert_result_into(IColumn& to) const {
440
1.55k
        if constexpr (result_is_nullable) {
441
661
            if (_data_value.is_null()) {
442
201
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
201
                col.insert_default();
444
460
            } else {
445
460
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
460
                StringRef value = _data_value.get_value();
447
460
                col.insert_data(value.data, value.size);
448
460
            }
449
893
        } else {
450
893
            StringRef value = _data_value.get_value();
451
893
            to.insert_data(value.data, value.size);
452
893
        }
453
1.55k
    }
_ZNK5doris11LeadLagDataILb0ELb0EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
893
    void insert_result_into(IColumn& to) const {
440
        if constexpr (result_is_nullable) {
441
            if (_data_value.is_null()) {
442
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
                col.insert_default();
444
            } else {
445
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
                StringRef value = _data_value.get_value();
447
                col.insert_data(value.data, value.size);
448
            }
449
893
        } else {
450
893
            StringRef value = _data_value.get_value();
451
893
            to.insert_data(value.data, value.size);
452
893
        }
453
893
    }
Unexecuted instantiation: _ZNK5doris11LeadLagDataILb0ELb1EE18insert_result_intoERNS_7IColumnE
_ZNK5doris11LeadLagDataILb1ELb0EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
8
    void insert_result_into(IColumn& to) const {
440
8
        if constexpr (result_is_nullable) {
441
8
            if (_data_value.is_null()) {
442
6
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
6
                col.insert_default();
444
6
            } else {
445
2
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
2
                StringRef value = _data_value.get_value();
447
2
                col.insert_data(value.data, value.size);
448
2
            }
449
        } else {
450
            StringRef value = _data_value.get_value();
451
            to.insert_data(value.data, value.size);
452
        }
453
8
    }
_ZNK5doris11LeadLagDataILb1ELb1EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
653
    void insert_result_into(IColumn& to) const {
440
653
        if constexpr (result_is_nullable) {
441
653
            if (_data_value.is_null()) {
442
195
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
195
                col.insert_default();
444
458
            } else {
445
458
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
458
                StringRef value = _data_value.get_value();
447
458
                col.insert_data(value.data, value.size);
448
458
            }
449
        } else {
450
            StringRef value = _data_value.get_value();
451
            to.insert_data(value.data, value.size);
452
        }
453
653
    }
454
455
1.06k
    void set_value(const IColumn** columns, size_t pos) {
456
1.06k
        if constexpr (arg_is_nullable) {
457
478
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
478
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
478
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
475
        _data_value.set_value(columns[0], pos);
466
1.06k
    }
_ZN5doris11LeadLagDataILb0ELb0EE9set_valueEPPKNS_7IColumnEm
Line
Count
Source
455
581
    void set_value(const IColumn** columns, size_t pos) {
456
        if constexpr (arg_is_nullable) {
457
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
                _data_value.reset();
461
                return;
462
            }
463
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
581
        _data_value.set_value(columns[0], pos);
466
581
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE9set_valueEPPKNS_7IColumnEm
_ZN5doris11LeadLagDataILb1ELb0EE9set_valueEPPKNS_7IColumnEm
Line
Count
Source
455
5
    void set_value(const IColumn** columns, size_t pos) {
456
        if constexpr (arg_is_nullable) {
457
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
                _data_value.reset();
461
                return;
462
            }
463
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
5
        _data_value.set_value(columns[0], pos);
466
5
    }
_ZN5doris11LeadLagDataILb1ELb1EE9set_valueEPPKNS_7IColumnEm
Line
Count
Source
455
478
    void set_value(const IColumn** columns, size_t pos) {
456
478
        if constexpr (arg_is_nullable) {
457
478
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
478
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
478
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
475
        _data_value.set_value(columns[0], pos);
466
478
    }
467
468
622
    void set_value_from_default(const IColumn* column, size_t pos) {
469
622
        DCHECK_GE(pos, 0);
470
622
        if (is_column_nullable(*column)) {
471
207
            const auto* nullable_column =
472
207
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
207
            if (nullable_column->is_null_at(pos)) {
474
202
                this->_data_value.reset();
475
202
            } else {
476
5
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
5
            }
478
415
        } else {
479
415
            this->_data_value.set_value(column, pos);
480
415
        }
481
622
    }
_ZN5doris11LeadLagDataILb0ELb0EE22set_value_from_defaultEPKNS_7IColumnEm
Line
Count
Source
468
325
    void set_value_from_default(const IColumn* column, size_t pos) {
469
325
        DCHECK_GE(pos, 0);
470
325
        if (is_column_nullable(*column)) {
471
0
            const auto* nullable_column =
472
0
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
0
            if (nullable_column->is_null_at(pos)) {
474
0
                this->_data_value.reset();
475
0
            } else {
476
0
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
0
            }
478
325
        } else {
479
325
            this->_data_value.set_value(column, pos);
480
325
        }
481
325
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE22set_value_from_defaultEPKNS_7IColumnEm
_ZN5doris11LeadLagDataILb1ELb0EE22set_value_from_defaultEPKNS_7IColumnEm
Line
Count
Source
468
6
    void set_value_from_default(const IColumn* column, size_t pos) {
469
6
        DCHECK_GE(pos, 0);
470
6
        if (is_column_nullable(*column)) {
471
6
            const auto* nullable_column =
472
6
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
6
            if (nullable_column->is_null_at(pos)) {
474
6
                this->_data_value.reset();
475
6
            } else {
476
0
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
0
            }
478
6
        } else {
479
0
            this->_data_value.set_value(column, pos);
480
0
        }
481
6
    }
_ZN5doris11LeadLagDataILb1ELb1EE22set_value_from_defaultEPKNS_7IColumnEm
Line
Count
Source
468
291
    void set_value_from_default(const IColumn* column, size_t pos) {
469
291
        DCHECK_GE(pos, 0);
470
291
        if (is_column_nullable(*column)) {
471
201
            const auto* nullable_column =
472
201
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
201
            if (nullable_column->is_null_at(pos)) {
474
196
                this->_data_value.reset();
475
196
            } else {
476
5
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
5
            }
478
201
        } else {
479
90
            this->_data_value.set_value(column, pos);
480
90
        }
481
291
    }
482
483
622
    void set_offset_value(const IColumn* column) {
484
622
        if (!_is_inited) {
485
547
            const auto* column_number =
486
547
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
547
            _offset_value = column_number->get_data()[0];
488
547
            _is_inited = true;
489
547
        }
490
622
    }
_ZN5doris11LeadLagDataILb0ELb0EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
325
    void set_offset_value(const IColumn* column) {
484
325
        if (!_is_inited) {
485
312
            const auto* column_number =
486
312
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
312
            _offset_value = column_number->get_data()[0];
488
312
            _is_inited = true;
489
312
        }
490
325
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE16set_offset_valueEPKNS_7IColumnE
_ZN5doris11LeadLagDataILb1ELb0EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
6
    void set_offset_value(const IColumn* column) {
484
6
        if (!_is_inited) {
485
6
            const auto* column_number =
486
6
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
6
            _offset_value = column_number->get_data()[0];
488
6
            _is_inited = true;
489
6
        }
490
6
    }
_ZN5doris11LeadLagDataILb1ELb1EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
291
    void set_offset_value(const IColumn* column) {
484
291
        if (!_is_inited) {
485
229
            const auto* column_number =
486
229
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
229
            _offset_value = column_number->get_data()[0];
488
229
            _is_inited = true;
489
229
        }
490
291
    }
491
492
622
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb0ELb0EE16get_offset_valueEv
Line
Count
Source
492
325
    int64_t get_offset_value() const { return _offset_value; }
Unexecuted instantiation: _ZNK5doris11LeadLagDataILb0ELb1EE16get_offset_valueEv
_ZNK5doris11LeadLagDataILb1ELb0EE16get_offset_valueEv
Line
Count
Source
492
6
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb1ELb1EE16get_offset_valueEv
Line
Count
Source
492
291
    int64_t get_offset_value() const { return _offset_value; }
493
494
private:
495
    BaseValue<arg_is_nullable> _data_value;
496
    bool _is_inited = false;
497
    int64_t _offset_value = 0;
498
};
499
500
template <typename Data, bool = false>
501
struct WindowFunctionLeadImpl : Data {
502
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
503
516
                                int64_t frame_end, const IColumn** columns) {
504
516
        if (frame_end > partition_end) { //output default value, win end is under partition
505
173
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
173
            auto pos = frame_end - 1 - this->get_offset_value();
509
173
            this->set_value_from_default(columns[2], pos);
510
173
            return;
511
173
        }
512
343
        this->set_value(columns, frame_end - 1);
513
343
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
72
                                int64_t frame_end, const IColumn** columns) {
504
72
        if (frame_end > partition_end) { //output default value, win end is under partition
505
20
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
20
            auto pos = frame_end - 1 - this->get_offset_value();
509
20
            this->set_value_from_default(columns[2], pos);
510
20
            return;
511
20
        }
512
52
        this->set_value(columns, frame_end - 1);
513
52
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
7
                                int64_t frame_end, const IColumn** columns) {
504
7
        if (frame_end > partition_end) { //output default value, win end is under partition
505
3
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
3
            auto pos = frame_end - 1 - this->get_offset_value();
509
3
            this->set_value_from_default(columns[2], pos);
510
3
            return;
511
3
        }
512
4
        this->set_value(columns, frame_end - 1);
513
4
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
437
                                int64_t frame_end, const IColumn** columns) {
504
437
        if (frame_end > partition_end) { //output default value, win end is under partition
505
150
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
150
            auto pos = frame_end - 1 - this->get_offset_value();
509
150
            this->set_value_from_default(columns[2], pos);
510
150
            return;
511
150
        }
512
287
        this->set_value(columns, frame_end - 1);
513
287
    }
514
515
751
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
515
110
    static const char* name() { return "lead"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
515
12
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
515
629
    static const char* name() { return "lead"; }
516
};
517
518
template <typename Data, bool = false>
519
struct WindowFunctionLagImpl : Data {
520
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
521
1.17k
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
1.17k
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
449
            this->set_offset_value(columns[1]);
525
449
            auto pos = frame_end - 1 + this->get_offset_value();
526
449
            this->set_value_from_default(columns[2], pos);
527
449
            return;
528
449
        }
529
721
        this->set_value(columns, frame_end - 1);
530
721
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
834
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
834
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
305
            this->set_offset_value(columns[1]);
525
305
            auto pos = frame_end - 1 + this->get_offset_value();
526
305
            this->set_value_from_default(columns[2], pos);
527
305
            return;
528
305
        }
529
529
        this->set_value(columns, frame_end - 1);
530
529
    }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
4
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
4
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
3
            this->set_offset_value(columns[1]);
525
3
            auto pos = frame_end - 1 + this->get_offset_value();
526
3
            this->set_value_from_default(columns[2], pos);
527
3
            return;
528
3
        }
529
1
        this->set_value(columns, frame_end - 1);
530
1
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
332
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
332
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
141
            this->set_offset_value(columns[1]);
525
141
            auto pos = frame_end - 1 + this->get_offset_value();
526
141
            this->set_value_from_default(columns[2], pos);
527
141
            return;
528
141
        }
529
191
        this->set_value(columns, frame_end - 1);
530
191
    }
531
532
1.79k
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
532
1.26k
    static const char* name() { return "lag"; }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
532
10
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
532
520
    static const char* name() { return "lag"; }
533
};
534
535
template <typename Data, bool arg_ignore_null = false>
536
struct WindowFunctionFirstImpl : Data {
537
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
538
1.61k
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
1.61k
        if ((this->has_set_value()) &&
542
1.61k
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
809
            return;
544
809
        }
545
1.61k
        DCHECK_LE(frame_start, frame_end);
546
806
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
26
            this->set_is_null();
548
26
            return;
549
26
        }
550
780
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
780
        if constexpr (arg_ignore_null) {
553
33
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
33
            if (is_column_nullable(*columns[0])) {
555
29
                const auto& arg_nullable =
556
29
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
29
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
38
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
9
                    frame_start++;
561
9
                }
562
29
            }
563
33
        }
564
780
        this->set_value(columns, frame_start);
565
780
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
5
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
5
        if ((this->has_set_value()) &&
542
5
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
2
            return;
544
2
        }
545
5
        DCHECK_LE(frame_start, frame_end);
546
3
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
0
            this->set_is_null();
548
0
            return;
549
0
        }
550
3
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
3
        this->set_value(columns, frame_start);
565
3
    }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
526
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
526
        if ((this->has_set_value()) &&
542
526
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
227
            return;
544
227
        }
545
526
        DCHECK_LE(frame_start, frame_end);
546
299
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
4
            this->set_is_null();
548
4
            return;
549
4
        }
550
295
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
295
        this->set_value(columns, frame_start);
565
295
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
1.03k
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
1.03k
        if ((this->has_set_value()) &&
542
1.03k
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
566
            return;
544
566
        }
545
1.03k
        DCHECK_LE(frame_start, frame_end);
546
465
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
16
            this->set_is_null();
548
16
            return;
549
16
        }
550
449
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
449
        this->set_value(columns, frame_start);
565
449
    }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
4
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
4
        if ((this->has_set_value()) &&
542
4
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
0
            return;
544
0
        }
545
4
        DCHECK_LE(frame_start, frame_end);
546
4
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
0
            this->set_is_null();
548
0
            return;
549
0
        }
550
4
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
4
        if constexpr (arg_ignore_null) {
553
4
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
4
            if (is_column_nullable(*columns[0])) {
555
0
                const auto& arg_nullable =
556
0
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
0
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
0
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
0
                    frame_start++;
561
0
                }
562
0
            }
563
4
        }
564
4
        this->set_value(columns, frame_start);
565
4
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
49
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
49
        if ((this->has_set_value()) &&
542
49
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
14
            return;
544
14
        }
545
49
        DCHECK_LE(frame_start, frame_end);
546
35
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
6
            this->set_is_null();
548
6
            return;
549
6
        }
550
29
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
29
        if constexpr (arg_ignore_null) {
553
29
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
29
            if (is_column_nullable(*columns[0])) {
555
29
                const auto& arg_nullable =
556
29
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
29
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
38
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
9
                    frame_start++;
561
9
                }
562
29
            }
563
29
        }
564
29
        this->set_value(columns, frame_start);
565
29
    }
566
567
2.66k
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
567
6
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
567
1.09k
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
567
1.47k
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
Line
Count
Source
567
20
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
567
74
    static const char* name() { return "first_value"; }
568
};
569
570
template <typename Data, bool arg_ignore_null = false>
571
struct WindowFunctionLastImpl : Data {
572
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
573
1.21k
                                int64_t frame_end, const IColumn** columns) {
574
1.21k
        DCHECK_LE(frame_start, frame_end);
575
1.21k
        if ((frame_end <= partition_start) ||
576
1.21k
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
254
            if ((this->has_set_value()) &&
578
254
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
228
            } else {
582
228
                this->set_is_null();
583
228
            }
584
254
            return;
585
254
        }
586
964
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
964
        if constexpr (arg_ignore_null) {
589
64
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
64
            if (is_column_nullable(*columns[0])) {
591
64
                const auto& arg_nullable =
592
64
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
64
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
105
                while (frame_start < frame_end) {
600
81
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
41
                        frame_end--;
602
41
                    } else {
603
40
                        this->set_value(columns, frame_end - 1);
604
40
                        return;
605
40
                    }
606
81
                }
607
24
                if (!this->has_set_value()) {
608
9
                    this->set_is_null();
609
9
                }
610
24
                return;
611
64
            }
612
64
        }
613
614
0
        this->set_value(columns, frame_end - 1);
615
964
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
426
                                int64_t frame_end, const IColumn** columns) {
574
426
        DCHECK_LE(frame_start, frame_end);
575
426
        if ((frame_end <= partition_start) ||
576
426
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
216
            if ((this->has_set_value()) &&
578
216
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
204
            } else {
582
204
                this->set_is_null();
583
204
            }
584
216
            return;
585
216
        }
586
210
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
        if constexpr (arg_ignore_null) {
589
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
            if (is_column_nullable(*columns[0])) {
591
                const auto& arg_nullable =
592
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
                while (frame_start < frame_end) {
600
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
                        frame_end--;
602
                    } else {
603
                        this->set_value(columns, frame_end - 1);
604
                        return;
605
                    }
606
                }
607
                if (!this->has_set_value()) {
608
                    this->set_is_null();
609
                }
610
                return;
611
            }
612
        }
613
614
210
        this->set_value(columns, frame_end - 1);
615
210
    }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
728
                                int64_t frame_end, const IColumn** columns) {
574
728
        DCHECK_LE(frame_start, frame_end);
575
728
        if ((frame_end <= partition_start) ||
576
728
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
38
            if ((this->has_set_value()) &&
578
38
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
24
            } else {
582
24
                this->set_is_null();
583
24
            }
584
38
            return;
585
38
        }
586
690
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
        if constexpr (arg_ignore_null) {
589
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
            if (is_column_nullable(*columns[0])) {
591
                const auto& arg_nullable =
592
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
                while (frame_start < frame_end) {
600
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
                        frame_end--;
602
                    } else {
603
                        this->set_value(columns, frame_end - 1);
604
                        return;
605
                    }
606
                }
607
                if (!this->has_set_value()) {
608
                    this->set_is_null();
609
                }
610
                return;
611
            }
612
        }
613
614
690
        this->set_value(columns, frame_end - 1);
615
690
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
64
                                int64_t frame_end, const IColumn** columns) {
574
64
        DCHECK_LE(frame_start, frame_end);
575
64
        if ((frame_end <= partition_start) ||
576
64
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
0
            if ((this->has_set_value()) &&
578
0
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
0
            } else {
582
0
                this->set_is_null();
583
0
            }
584
0
            return;
585
0
        }
586
64
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
64
        if constexpr (arg_ignore_null) {
589
64
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
64
            if (is_column_nullable(*columns[0])) {
591
64
                const auto& arg_nullable =
592
64
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
64
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
105
                while (frame_start < frame_end) {
600
81
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
41
                        frame_end--;
602
41
                    } else {
603
40
                        this->set_value(columns, frame_end - 1);
604
40
                        return;
605
40
                    }
606
81
                }
607
24
                if (!this->has_set_value()) {
608
9
                    this->set_is_null();
609
9
                }
610
24
                return;
611
64
            }
612
64
        }
613
614
0
        this->set_value(columns, frame_end - 1);
615
64
    }
616
617
1.67k
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
617
590
    static const char* name() { return "last_value"; }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
617
1.00k
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
617
87
    static const char* name() { return "last_value"; }
618
};
619
620
template <typename Data, bool = false>
621
struct WindowFunctionNthValueImpl : Data {
622
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
623
238
                                int64_t frame_end, const IColumn** columns) {
624
238
        DCHECK_LE(frame_start, frame_end);
625
238
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
238
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
238
        this->_frame_start_pose =
628
238
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
238
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
238
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
238
                                 .get_data()[0];
632
238
        DCHECK_NE(offset, 0);
633
238
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
238
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
103
            this->set_is_null();
637
103
            return;
638
103
        }
639
135
        this->set_value(columns, row_position + this->_frame_start_pose);
640
135
    }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
623
3
                                int64_t frame_end, const IColumn** columns) {
624
3
        DCHECK_LE(frame_start, frame_end);
625
3
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
3
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
3
        this->_frame_start_pose =
628
3
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
3
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
3
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
3
                                 .get_data()[0];
632
3
        DCHECK_NE(offset, 0);
633
3
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
3
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
1
            this->set_is_null();
637
1
            return;
638
1
        }
639
2
        this->set_value(columns, row_position + this->_frame_start_pose);
640
2
    }
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
623
235
                                int64_t frame_end, const IColumn** columns) {
624
235
        DCHECK_LE(frame_start, frame_end);
625
235
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
235
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
235
        this->_frame_start_pose =
628
235
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
235
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
235
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
235
                                 .get_data()[0];
632
235
        DCHECK_NE(offset, 0);
633
235
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
235
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
102
            this->set_is_null();
637
102
            return;
638
102
        }
639
133
        this->set_value(columns, row_position + this->_frame_start_pose);
640
133
    }
641
642
270
    static const char* name() { return "nth_value"; }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE4nameEv
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
642
270
    static const char* name() { return "nth_value"; }
643
};
644
645
template <typename Data>
646
class WindowFunctionData final
647
        : public IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>> {
648
public:
649
    WindowFunctionData(const DataTypes& argument_types_)
650
503
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
503
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
9
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
9
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
40
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
40
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
97
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
97
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
37
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
37
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
16
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
16
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
115
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
115
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
84
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
84
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
10
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
10
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
23
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
23
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
58
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
58
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
9
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
9
              _argument_type(argument_types_[0]) {}
652
653
7.15k
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
110
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
13
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
628
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.26k
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
10
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
519
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
269
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
6
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.09k
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.47k
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
20
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
74
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
590
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.00k
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
87
    String get_name() const override { return Data::name(); }
654
655
7.54k
    DataTypePtr get_return_type() const override {
656
7.54k
        if constexpr (Data::result_nullable) {
657
6.07k
            return make_nullable(_argument_type);
658
6.07k
        } else {
659
1.47k
            return _argument_type;
660
1.47k
        }
661
7.54k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
106
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
106
        } else {
659
106
            return _argument_type;
660
106
        }
661
106
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
10
    DataTypePtr get_return_type() const override {
656
10
        if constexpr (Data::result_nullable) {
657
10
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
10
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
553
    DataTypePtr get_return_type() const override {
656
553
        if constexpr (Data::result_nullable) {
657
553
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
553
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.35k
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
1.35k
        } else {
659
1.35k
            return _argument_type;
660
1.35k
        }
661
1.35k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
11
    DataTypePtr get_return_type() const override {
656
11
        if constexpr (Data::result_nullable) {
657
11
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
11
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
556
    DataTypePtr get_return_type() const override {
656
556
        if constexpr (Data::result_nullable) {
657
556
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
556
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
285
    DataTypePtr get_return_type() const override {
656
285
        if constexpr (Data::result_nullable) {
657
285
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
285
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
7
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
7
        } else {
659
7
            return _argument_type;
660
7
        }
661
7
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.20k
    DataTypePtr get_return_type() const override {
656
1.20k
        if constexpr (Data::result_nullable) {
657
1.20k
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
1.20k
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.55k
    DataTypePtr get_return_type() const override {
656
1.55k
        if constexpr (Data::result_nullable) {
657
1.55k
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
1.55k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
21
    DataTypePtr get_return_type() const override {
656
21
        if constexpr (Data::result_nullable) {
657
21
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
21
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
104
    DataTypePtr get_return_type() const override {
656
104
        if constexpr (Data::result_nullable) {
657
104
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
104
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
608
    DataTypePtr get_return_type() const override {
656
608
        if constexpr (Data::result_nullable) {
657
608
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
608
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.06k
    DataTypePtr get_return_type() const override {
656
1.06k
        if constexpr (Data::result_nullable) {
657
1.06k
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
1.06k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
100
    DataTypePtr get_return_type() const override {
656
100
        if constexpr (Data::result_nullable) {
657
100
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
100
    }
662
663
4.75k
    void check_input_columns_type(const IColumn** columns) const override {
664
4.75k
        IAggregateFunction::check_input_columns_type(columns);
665
4.75k
        const auto function_name = get_name();
666
4.75k
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
1.92k
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
1.92k
        }
669
4.75k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
72
    void check_input_columns_type(const IColumn** columns) const override {
664
72
        IAggregateFunction::check_input_columns_type(columns);
665
72
        const auto function_name = get_name();
666
72
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
72
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
72
        }
669
72
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
7
    void check_input_columns_type(const IColumn** columns) const override {
664
7
        IAggregateFunction::check_input_columns_type(columns);
665
7
        const auto function_name = get_name();
666
7
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
7
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
7
        }
669
7
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
437
    void check_input_columns_type(const IColumn** columns) const override {
664
437
        IAggregateFunction::check_input_columns_type(columns);
665
437
        const auto function_name = get_name();
666
437
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
437
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
437
        }
669
437
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
834
    void check_input_columns_type(const IColumn** columns) const override {
664
834
        IAggregateFunction::check_input_columns_type(columns);
665
834
        const auto function_name = get_name();
666
834
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
834
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
834
        }
669
834
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
4
    void check_input_columns_type(const IColumn** columns) const override {
664
4
        IAggregateFunction::check_input_columns_type(columns);
665
4
        const auto function_name = get_name();
666
4
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
4
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
4
        }
669
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
332
    void check_input_columns_type(const IColumn** columns) const override {
664
332
        IAggregateFunction::check_input_columns_type(columns);
665
332
        const auto function_name = get_name();
666
332
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
332
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
332
        }
669
332
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
235
    void check_input_columns_type(const IColumn** columns) const override {
664
235
        IAggregateFunction::check_input_columns_type(columns);
665
235
        const auto function_name = get_name();
666
235
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
235
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
235
        }
669
235
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
5
    void check_input_columns_type(const IColumn** columns) const override {
664
5
        IAggregateFunction::check_input_columns_type(columns);
665
5
        const auto function_name = get_name();
666
5
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
526
    void check_input_columns_type(const IColumn** columns) const override {
664
526
        IAggregateFunction::check_input_columns_type(columns);
665
526
        const auto function_name = get_name();
666
526
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
526
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
1.03k
    void check_input_columns_type(const IColumn** columns) const override {
664
1.03k
        IAggregateFunction::check_input_columns_type(columns);
665
1.03k
        const auto function_name = get_name();
666
1.03k
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
1.03k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
4
    void check_input_columns_type(const IColumn** columns) const override {
664
4
        IAggregateFunction::check_input_columns_type(columns);
665
4
        const auto function_name = get_name();
666
4
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
4
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
49
    void check_input_columns_type(const IColumn** columns) const override {
664
49
        IAggregateFunction::check_input_columns_type(columns);
665
49
        const auto function_name = get_name();
666
49
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
49
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
426
    void check_input_columns_type(const IColumn** columns) const override {
664
426
        IAggregateFunction::check_input_columns_type(columns);
665
426
        const auto function_name = get_name();
666
426
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
426
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
728
    void check_input_columns_type(const IColumn** columns) const override {
664
728
        IAggregateFunction::check_input_columns_type(columns);
665
728
        const auto function_name = get_name();
666
728
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
728
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
64
    void check_input_columns_type(const IColumn** columns) const override {
664
64
        IAggregateFunction::check_input_columns_type(columns);
665
64
        const auto function_name = get_name();
666
64
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
64
    }
670
671
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
672
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
673
4.75k
                                Arena&, UInt8*, UInt8*) const override {
674
4.75k
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
4.75k
                                                 frame_end, columns);
676
4.75k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
72
                                Arena&, UInt8*, UInt8*) const override {
674
72
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
72
                                                 frame_end, columns);
676
72
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
7
                                Arena&, UInt8*, UInt8*) const override {
674
7
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
7
                                                 frame_end, columns);
676
7
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
437
                                Arena&, UInt8*, UInt8*) const override {
674
437
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
437
                                                 frame_end, columns);
676
437
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
834
                                Arena&, UInt8*, UInt8*) const override {
674
834
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
834
                                                 frame_end, columns);
676
834
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
4
                                Arena&, UInt8*, UInt8*) const override {
674
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
4
                                                 frame_end, columns);
676
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
332
                                Arena&, UInt8*, UInt8*) const override {
674
332
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
332
                                                 frame_end, columns);
676
332
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
3
                                Arena&, UInt8*, UInt8*) const override {
674
3
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
3
                                                 frame_end, columns);
676
3
    }
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
235
                                Arena&, UInt8*, UInt8*) const override {
674
235
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
235
                                                 frame_end, columns);
676
235
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
5
                                Arena&, UInt8*, UInt8*) const override {
674
5
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
5
                                                 frame_end, columns);
676
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
526
                                Arena&, UInt8*, UInt8*) const override {
674
526
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
526
                                                 frame_end, columns);
676
526
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
1.03k
                                Arena&, UInt8*, UInt8*) const override {
674
1.03k
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
1.03k
                                                 frame_end, columns);
676
1.03k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
4
                                Arena&, UInt8*, UInt8*) const override {
674
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
4
                                                 frame_end, columns);
676
4
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
49
                                Arena&, UInt8*, UInt8*) const override {
674
49
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
49
                                                 frame_end, columns);
676
49
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
426
                                Arena&, UInt8*, UInt8*) const override {
674
426
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
426
                                                 frame_end, columns);
676
426
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
728
                                Arena&, UInt8*, UInt8*) const override {
674
728
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
728
                                                 frame_end, columns);
676
728
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
64
                                Arena&, UInt8*, UInt8*) const override {
674
64
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
64
                                                 frame_end, columns);
676
64
    }
677
678
2.07k
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
13
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
117
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
151
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
50
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
183
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
273
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
457
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5resetEPc
Line
Count
Source
678
4
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5resetEPc
Line
Count
Source
678
34
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
340
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
416
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5resetEPc
Line
Count
Source
678
34
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
679
680
5.49k
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
5.49k
        this->data(place).insert_result_into(to);
682
5.49k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
59
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
59
        this->data(place).insert_result_into(to);
682
59
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
4
        this->data(place).insert_result_into(to);
682
4
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
321
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
321
        this->data(place).insert_result_into(to);
682
321
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
834
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
834
        this->data(place).insert_result_into(to);
682
834
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
4
        this->data(place).insert_result_into(to);
682
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
332
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
332
        this->data(place).insert_result_into(to);
682
332
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
3
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
3
        this->data(place).insert_result_into(to);
682
3
    }
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
233
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
233
        this->data(place).insert_result_into(to);
682
233
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
5
        this->data(place).insert_result_into(to);
682
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
859
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
859
        this->data(place).insert_result_into(to);
682
859
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
1.28k
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
1.28k
        this->data(place).insert_result_into(to);
682
1.28k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
5
        this->data(place).insert_result_into(to);
682
5
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
114
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
114
        this->data(place).insert_result_into(to);
682
114
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
447
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
447
        this->data(place).insert_result_into(to);
682
447
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
906
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
906
        this->data(place).insert_result_into(to);
682
906
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
83
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
83
        this->data(place).insert_result_into(to);
682
83
    }
683
684
    void add(AggregateDataPtr place, const IColumn** columns, ssize_t row_num,
685
0
             Arena&) const override {
686
0
        throw doris::Exception(Status::FatalError("WindowFunctionLeadLagData do not support add"));
687
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE3addEPcPPKNS_7IColumnElRNS_5ArenaE
688
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {
689
0
        throw doris::Exception(
690
0
                Status::FatalError("WindowFunctionLeadLagData do not support merge"));
691
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5mergeEPcPKcRNS_5ArenaE
692
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {
693
0
        throw doris::Exception(
694
0
                Status::FatalError("WindowFunctionLeadLagData do not support serialize"));
695
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE9serializeEPKcRNS_14BufferWritableE
696
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {
697
0
        throw doris::Exception(
698
0
                Status::FatalError("WindowFunctionLeadLagData do not support deserialize"));
699
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE
700
701
private:
702
    DataTypePtr _argument_type;
703
};
704
705
} // namespace doris