Coverage Report

Created: 2026-05-15 02:10

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
61
            : IAggregateFunctionDataHelper(argument_types_) {}
54
55
82
    String get_name() const override { return "row_number"; }
56
57
143
    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
1.14k
                                Arena&, UInt8*, UInt8*) const override {
66
1.14k
        ++data(place).count;
67
1.14k
    }
68
69
83
    void reset(AggregateDataPtr place) const override {
70
83
        WindowFunctionRowNumber::data(place).count = 0;
71
83
    }
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
82
    bool result_column_could_resize() const override { return true; }
79
80
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
81
1.14k
                                  const size_t start, const size_t end) const override {
82
1.14k
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
83
2.29k
        for (size_t i = start; i < end; ++i) {
84
1.14k
            column.get_data()[i] = (doris::WindowFunctionRowNumber::data(place).count);
85
1.14k
        }
86
1.14k
    }
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
11
            : IAggregateFunctionDataHelper(argument_types_) {}
103
104
38
    String get_name() const override { return "rank"; }
105
106
49
    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
67
                                Arena&, UInt8*, UInt8*) const override {
115
67
        int64_t peer_group_count = frame_end - frame_start;
116
67
        if (WindowFunctionRank::data(place).peer_group_start != frame_start) {
117
67
            WindowFunctionRank::data(place).peer_group_start = frame_start;
118
67
            WindowFunctionRank::data(place).rank += WindowFunctionRank::data(place).count;
119
67
        }
120
67
        WindowFunctionRank::data(place).count = peer_group_count;
121
67
    }
122
123
30
    void reset(AggregateDataPtr place) const override {
124
30
        WindowFunctionRank::data(place).rank = 0;
125
30
        WindowFunctionRank::data(place).count = 1;
126
30
        WindowFunctionRank::data(place).peer_group_start = -1;
127
30
    }
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
38
    bool result_column_could_resize() const override { return true; }
135
136
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
137
67
                                  const size_t start, const size_t end) const override {
138
67
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
139
172
        for (size_t i = start; i < end; ++i) {
140
105
            column.get_data()[i] = (doris::WindowFunctionRank::data(place).rank);
141
105
        }
142
67
    }
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
7
            : IAggregateFunctionDataHelper(argument_types_) {}
159
160
21
    String get_name() const override { return "dense_rank"; }
161
162
28
    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
45
                                Arena&, UInt8*, UInt8*) const override {
171
45
        if (WindowFunctionDenseRank::data(place).peer_group_start != frame_start) {
172
45
            WindowFunctionDenseRank::data(place).peer_group_start = frame_start;
173
45
            WindowFunctionDenseRank::data(place).rank++;
174
45
        }
175
45
    }
176
177
9
    void reset(AggregateDataPtr place) const override {
178
9
        WindowFunctionDenseRank::data(place).rank = 0;
179
9
        WindowFunctionDenseRank::data(place).peer_group_start = -1;
180
9
    }
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
21
    bool result_column_could_resize() const override { return true; }
188
189
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
190
45
                                  const size_t start, const size_t end) const override {
191
45
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
192
92
        for (size_t i = start; i < end; ++i) {
193
47
            column.get_data()[i] = (doris::WindowFunctionDenseRank::data(place).rank);
194
47
        }
195
45
    }
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
7
    static double _cal_percent(int64_t rank, int64_t total_rows) {
213
7
        return total_rows <= 1 ? 0.0 : double(rank - 1) * 1.0 / double(total_rows - 1);
214
7
    }
215
216
public:
217
    WindowFunctionPercentRank(const DataTypes& argument_types_)
218
1
            : IAggregateFunctionDataHelper(argument_types_) {}
219
220
10
    String get_name() const override { return "percent_rank"; }
221
222
11
    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
7
                                Arena&, UInt8*, UInt8*) const override {
229
7
        int64_t peer_group_count = frame_end - frame_start;
230
7
        if (WindowFunctionPercentRank::data(place).peer_group_start != frame_start) {
231
7
            WindowFunctionPercentRank::data(place).peer_group_start = frame_start;
232
7
            WindowFunctionPercentRank::data(place).rank +=
233
7
                    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
7
            WindowFunctionPercentRank::data(place).partition_size = partition_end - partition_start;
237
7
        }
238
7
        WindowFunctionPercentRank::data(place).count = peer_group_count;
239
7
    }
240
241
3
    void reset(AggregateDataPtr place) const override {
242
3
        WindowFunctionPercentRank::data(place).rank = 0;
243
3
        WindowFunctionPercentRank::data(place).count = 1;
244
3
        WindowFunctionPercentRank::data(place).peer_group_start = -1;
245
3
        WindowFunctionPercentRank::data(place).partition_size = 0;
246
3
    }
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
10
    bool result_column_could_resize() const override { return true; }
255
256
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
257
7
                                  const size_t start, const size_t end) const override {
258
7
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
259
7
        auto percent_rank = _cal_percent(data(place).rank, data(place).partition_size);
260
16
        for (size_t i = start; i < end; ++i) {
261
9
            column.get_data()[i] = percent_rank;
262
9
        }
263
7
    }
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
7
                              int64_t partition_end) {
281
7
        if (data(place).denominator == 0) {
282
3
            data(place).denominator = partition_end - partition_start;
283
3
        }
284
7
    }
285
286
public:
287
    WindowFunctionCumeDist(const DataTypes& argument_types_)
288
1
            : IAggregateFunctionDataHelper(argument_types_) {}
289
290
10
    String get_name() const override { return "cume_dist"; }
291
292
11
    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
7
                                Arena&, UInt8*, UInt8*) const override {
299
7
        check_default(place, partition_start, partition_end);
300
7
        int64_t peer_group_count = frame_end - frame_start;
301
7
        if (WindowFunctionCumeDist::data(place).peer_group_start != frame_start) {
302
7
            WindowFunctionCumeDist::data(place).peer_group_start = frame_start;
303
7
            WindowFunctionCumeDist::data(place).numerator += peer_group_count;
304
7
        }
305
7
    }
306
307
3
    void reset(AggregateDataPtr place) const override {
308
3
        WindowFunctionCumeDist::data(place).numerator = 0;
309
3
        WindowFunctionCumeDist::data(place).denominator = 0;
310
3
        WindowFunctionCumeDist::data(place).peer_group_start = -1;
311
3
    }
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
10
    bool result_column_could_resize() const override { return true; }
320
321
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
322
7
                                  const size_t start, const size_t end) const override {
323
7
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
324
7
        auto cume_dist = (double)data(place).numerator * 1.0 / (double)data(place).denominator;
325
16
        for (size_t i = start; i < end; ++i) {
326
9
            column.get_data()[i] = cume_dist;
327
9
        }
328
7
    }
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
4
            : IAggregateFunctionDataHelper(argument_types_) {}
347
348
13
    String get_name() const override { return "ntile"; }
349
350
17
    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
36
                                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
36
        int64_t row_index = ++WindowFunctionNTile::data(place).rows - 1;
361
36
        int64_t bucket_num = columns[0]->get_int(0);
362
36
        int64_t partition_size = partition_end - partition_start;
363
364
36
        int64_t small_bucket_size = partition_size / bucket_num;
365
36
        int64_t big_bucket_num = partition_size % bucket_num;
366
36
        int64_t first_small_bucket_row_index = big_bucket_num * (small_bucket_size + 1);
367
36
        if (row_index >= first_small_bucket_row_index) {
368
            // small_bucket_size can't be zero
369
20
            WindowFunctionNTile::data(place).bucket_index =
370
20
                    big_bucket_num + 1 +
371
20
                    (row_index - first_small_bucket_row_index) / small_bucket_size;
372
20
        } else {
373
16
            WindowFunctionNTile::data(place).bucket_index = row_index / (small_bucket_size + 1) + 1;
374
16
        }
375
36
    }
376
377
10
    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
13
    bool result_column_could_resize() const override { return true; }
385
386
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
387
36
                                  const size_t start, const size_t end) const override {
388
36
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
389
72
        for (size_t i = start; i < end; ++i) {
390
36
            column.get_data()[i] = WindowFunctionNTile::data(place).bucket_index;
391
36
        }
392
36
    }
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
162
    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
8
    void set_is_null() { this->_data_value.reset(); }
_ZN5doris13FirstLastDataILb1ELb1EE11set_is_nullEv
Line
Count
Source
403
154
    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
182
    void reset() {
410
182
        this->_data_value.reset();
411
182
        this->_has_value = false;
412
182
        this->_frame_start_pose = 0;
413
182
        this->_frame_total_rows = 0;
414
182
    }
Unexecuted instantiation: _ZN5doris12NthValueDataILb0ELb0EE5resetEv
Unexecuted instantiation: _ZN5doris12NthValueDataILb0ELb1EE5resetEv
Unexecuted instantiation: _ZN5doris12NthValueDataILb1ELb0EE5resetEv
_ZN5doris12NthValueDataILb1ELb1EE5resetEv
Line
Count
Source
409
182
    void reset() {
410
182
        this->_data_value.reset();
411
182
        this->_has_value = false;
412
182
        this->_frame_start_pose = 0;
413
182
        this->_frame_total_rows = 0;
414
182
    }
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
470
    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
462
    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
340
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb0EE9get_valueEv
Line
Count
Source
426
52
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb1EE9get_valueEv
Line
Count
Source
426
288
    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
138
    void reset() {
434
138
        _data_value.reset();
435
138
        _is_inited = false;
436
138
        _offset_value = 0;
437
138
    }
_ZN5doris11LeadLagDataILb0ELb0EE5resetEv
Line
Count
Source
433
6
    void reset() {
434
6
        _data_value.reset();
435
6
        _is_inited = false;
436
6
        _offset_value = 0;
437
6
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE5resetEv
_ZN5doris11LeadLagDataILb1ELb0EE5resetEv
Line
Count
Source
433
4
    void reset() {
434
4
        _data_value.reset();
435
4
        _is_inited = false;
436
4
        _offset_value = 0;
437
4
    }
_ZN5doris11LeadLagDataILb1ELb1EE5resetEv
Line
Count
Source
433
128
    void reset() {
434
128
        _data_value.reset();
435
128
        _is_inited = false;
436
128
        _offset_value = 0;
437
128
    }
438
439
520
    void insert_result_into(IColumn& to) const {
440
520
        if constexpr (result_is_nullable) {
441
470
            if (_data_value.is_null()) {
442
180
                auto& col = assert_cast<ColumnNullable&>(to);
443
180
                col.insert_default();
444
290
            } else {
445
290
                auto& col = assert_cast<ColumnNullable&>(to);
446
290
                StringRef value = _data_value.get_value();
447
290
                col.insert_data(value.data, value.size);
448
290
            }
449
470
        } else {
450
50
            StringRef value = _data_value.get_value();
451
50
            to.insert_data(value.data, value.size);
452
50
        }
453
520
    }
_ZNK5doris11LeadLagDataILb0ELb0EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
50
    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&>(to);
443
                col.insert_default();
444
            } else {
445
                auto& col = assert_cast<ColumnNullable&>(to);
446
                StringRef value = _data_value.get_value();
447
                col.insert_data(value.data, value.size);
448
            }
449
50
        } else {
450
50
            StringRef value = _data_value.get_value();
451
50
            to.insert_data(value.data, value.size);
452
50
        }
453
50
    }
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&>(to);
443
6
                col.insert_default();
444
6
            } else {
445
2
                auto& col = assert_cast<ColumnNullable&>(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
462
    void insert_result_into(IColumn& to) const {
440
462
        if constexpr (result_is_nullable) {
441
462
            if (_data_value.is_null()) {
442
174
                auto& col = assert_cast<ColumnNullable&>(to);
443
174
                col.insert_default();
444
288
            } else {
445
288
                auto& col = assert_cast<ColumnNullable&>(to);
446
288
                StringRef value = _data_value.get_value();
447
288
                col.insert_data(value.data, value.size);
448
288
            }
449
        } else {
450
            StringRef value = _data_value.get_value();
451
            to.insert_data(value.data, value.size);
452
        }
453
462
    }
454
455
396
    void set_value(const IColumn** columns, size_t pos) {
456
396
        if constexpr (arg_is_nullable) {
457
345
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
345
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
345
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
342
        _data_value.set_value(columns[0], pos);
466
396
    }
_ZN5doris11LeadLagDataILb0ELb0EE9set_valueEPPKNS_7IColumnEm
Line
Count
Source
455
46
    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
46
        _data_value.set_value(columns[0], pos);
466
46
    }
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
345
    void set_value(const IColumn** columns, size_t pos) {
456
345
        if constexpr (arg_is_nullable) {
457
345
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
345
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
345
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
342
        _data_value.set_value(columns[0], pos);
466
345
    }
467
468
212
    void set_value_from_default(const IColumn* column, size_t pos) {
469
212
        DCHECK_GE(pos, 0);
470
212
        if (is_column_nullable(*column)) {
471
184
            const auto* nullable_column =
472
184
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
184
            if (nullable_column->is_null_at(pos)) {
474
179
                this->_data_value.reset();
475
179
            } else {
476
5
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
5
            }
478
184
        } else {
479
28
            this->_data_value.set_value(column, pos);
480
28
        }
481
212
    }
_ZN5doris11LeadLagDataILb0ELb0EE22set_value_from_defaultEPKNS_7IColumnEm
Line
Count
Source
468
10
    void set_value_from_default(const IColumn* column, size_t pos) {
469
10
        DCHECK_GE(pos, 0);
470
10
        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
10
        } else {
479
10
            this->_data_value.set_value(column, pos);
480
10
        }
481
10
    }
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
196
    void set_value_from_default(const IColumn* column, size_t pos) {
469
196
        DCHECK_GE(pos, 0);
470
196
        if (is_column_nullable(*column)) {
471
178
            const auto* nullable_column =
472
178
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
178
            if (nullable_column->is_null_at(pos)) {
474
173
                this->_data_value.reset();
475
173
            } else {
476
5
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
5
            }
478
178
        } else {
479
18
            this->_data_value.set_value(column, pos);
480
18
        }
481
196
    }
482
483
212
    void set_offset_value(const IColumn* column) {
484
212
        if (!_is_inited) {
485
178
            const auto* column_number = assert_cast<const ColumnInt64*>(column);
486
178
            _offset_value = column_number->get_data()[0];
487
178
            _is_inited = true;
488
178
        }
489
212
    }
_ZN5doris11LeadLagDataILb0ELb0EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
10
    void set_offset_value(const IColumn* column) {
484
10
        if (!_is_inited) {
485
8
            const auto* column_number = assert_cast<const ColumnInt64*>(column);
486
8
            _offset_value = column_number->get_data()[0];
487
8
            _is_inited = true;
488
8
        }
489
10
    }
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 = assert_cast<const ColumnInt64*>(column);
486
6
            _offset_value = column_number->get_data()[0];
487
6
            _is_inited = true;
488
6
        }
489
6
    }
_ZN5doris11LeadLagDataILb1ELb1EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
196
    void set_offset_value(const IColumn* column) {
484
196
        if (!_is_inited) {
485
164
            const auto* column_number = assert_cast<const ColumnInt64*>(column);
486
164
            _offset_value = column_number->get_data()[0];
487
164
            _is_inited = true;
488
164
        }
489
196
    }
490
491
212
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb0ELb0EE16get_offset_valueEv
Line
Count
Source
491
10
    int64_t get_offset_value() const { return _offset_value; }
Unexecuted instantiation: _ZNK5doris11LeadLagDataILb0ELb1EE16get_offset_valueEv
_ZNK5doris11LeadLagDataILb1ELb0EE16get_offset_valueEv
Line
Count
Source
491
6
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb1ELb1EE16get_offset_valueEv
Line
Count
Source
491
196
    int64_t get_offset_value() const { return _offset_value; }
492
493
private:
494
    BaseValue<arg_is_nullable> _data_value;
495
    bool _is_inited = false;
496
    int64_t _offset_value = 0;
497
};
498
499
template <typename Data, bool = false>
500
struct WindowFunctionLeadImpl : Data {
501
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
502
339
                                int64_t frame_end, const IColumn** columns) {
503
339
        if (frame_end > partition_end) { //output default value, win end is under partition
504
104
            this->set_offset_value(columns[1]);
505
            // eg: lead(column, 10, default_value), column size maybe 3 rows
506
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
507
104
            auto pos = frame_end - 1 - this->get_offset_value();
508
104
            this->set_value_from_default(columns[2], pos);
509
104
            return;
510
104
        }
511
235
        this->set_value(columns, frame_end - 1);
512
235
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
502
36
                                int64_t frame_end, const IColumn** columns) {
503
36
        if (frame_end > partition_end) { //output default value, win end is under partition
504
6
            this->set_offset_value(columns[1]);
505
            // eg: lead(column, 10, default_value), column size maybe 3 rows
506
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
507
6
            auto pos = frame_end - 1 - this->get_offset_value();
508
6
            this->set_value_from_default(columns[2], pos);
509
6
            return;
510
6
        }
511
30
        this->set_value(columns, frame_end - 1);
512
30
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
502
7
                                int64_t frame_end, const IColumn** columns) {
503
7
        if (frame_end > partition_end) { //output default value, win end is under partition
504
3
            this->set_offset_value(columns[1]);
505
            // eg: lead(column, 10, default_value), column size maybe 3 rows
506
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
507
3
            auto pos = frame_end - 1 - this->get_offset_value();
508
3
            this->set_value_from_default(columns[2], pos);
509
3
            return;
510
3
        }
511
4
        this->set_value(columns, frame_end - 1);
512
4
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
502
296
                                int64_t frame_end, const IColumn** columns) {
503
296
        if (frame_end > partition_end) { //output default value, win end is under partition
504
95
            this->set_offset_value(columns[1]);
505
            // eg: lead(column, 10, default_value), column size maybe 3 rows
506
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
507
95
            auto pos = frame_end - 1 - this->get_offset_value();
508
95
            this->set_value_from_default(columns[2], pos);
509
95
            return;
510
95
        }
511
201
        this->set_value(columns, frame_end - 1);
512
201
    }
513
514
153
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
514
26
    static const char* name() { return "lead"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
514
4
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
514
123
    static const char* name() { return "lead"; }
515
};
516
517
template <typename Data, bool = false>
518
struct WindowFunctionLagImpl : Data {
519
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
520
269
                                int64_t frame_end, const IColumn** columns) {
521
        // window start is beyond partition
522
269
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
523
108
            this->set_offset_value(columns[1]);
524
108
            auto pos = frame_end - 1 + this->get_offset_value();
525
108
            this->set_value_from_default(columns[2], pos);
526
108
            return;
527
108
        }
528
161
        this->set_value(columns, frame_end - 1);
529
161
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
520
20
                                int64_t frame_end, const IColumn** columns) {
521
        // window start is beyond partition
522
20
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
523
4
            this->set_offset_value(columns[1]);
524
4
            auto pos = frame_end - 1 + this->get_offset_value();
525
4
            this->set_value_from_default(columns[2], pos);
526
4
            return;
527
4
        }
528
16
        this->set_value(columns, frame_end - 1);
529
16
    }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
520
4
                                int64_t frame_end, const IColumn** columns) {
521
        // window start is beyond partition
522
4
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
523
3
            this->set_offset_value(columns[1]);
524
3
            auto pos = frame_end - 1 + this->get_offset_value();
525
3
            this->set_value_from_default(columns[2], pos);
526
3
            return;
527
3
        }
528
1
        this->set_value(columns, frame_end - 1);
529
1
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
520
245
                                int64_t frame_end, const IColumn** columns) {
521
        // window start is beyond partition
522
245
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
523
101
            this->set_offset_value(columns[1]);
524
101
            auto pos = frame_end - 1 + this->get_offset_value();
525
101
            this->set_value_from_default(columns[2], pos);
526
101
            return;
527
101
        }
528
144
        this->set_value(columns, frame_end - 1);
529
144
    }
530
531
131
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
531
2
    static const char* name() { return "lag"; }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
531
4
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
531
125
    static const char* name() { return "lag"; }
532
};
533
534
template <typename Data, bool arg_ignore_null = false>
535
struct WindowFunctionFirstImpl : Data {
536
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
537
401
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
401
        if ((this->has_set_value()) &&
541
401
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
155
            return;
543
155
        }
544
401
        DCHECK_LE(frame_start, frame_end);
545
246
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
26
            this->set_is_null();
547
26
            return;
548
26
        }
549
220
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
220
        if constexpr (arg_ignore_null) {
552
28
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
28
            if (columns[0]->is_nullable()) {
554
24
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
33
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
9
                    frame_start++;
558
9
                }
559
24
            }
560
28
        }
561
220
        this->set_value(columns, frame_start);
562
220
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
537
5
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
5
        if ((this->has_set_value()) &&
541
5
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
2
            return;
543
2
        }
544
5
        DCHECK_LE(frame_start, frame_end);
545
3
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
0
            this->set_is_null();
547
0
            return;
548
0
        }
549
3
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
        if constexpr (arg_ignore_null) {
552
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
            if (columns[0]->is_nullable()) {
554
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
                    frame_start++;
558
                }
559
            }
560
        }
561
3
        this->set_value(columns, frame_start);
562
3
    }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
537
35
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
35
        if ((this->has_set_value()) &&
541
35
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
2
            return;
543
2
        }
544
35
        DCHECK_LE(frame_start, frame_end);
545
33
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
4
            this->set_is_null();
547
4
            return;
548
4
        }
549
29
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
        if constexpr (arg_ignore_null) {
552
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
            if (columns[0]->is_nullable()) {
554
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
                    frame_start++;
558
                }
559
            }
560
        }
561
29
        this->set_value(columns, frame_start);
562
29
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
537
313
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
313
        if ((this->has_set_value()) &&
541
313
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
137
            return;
543
137
        }
544
313
        DCHECK_LE(frame_start, frame_end);
545
176
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
16
            this->set_is_null();
547
16
            return;
548
16
        }
549
160
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
        if constexpr (arg_ignore_null) {
552
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
            if (columns[0]->is_nullable()) {
554
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
                    frame_start++;
558
                }
559
            }
560
        }
561
160
        this->set_value(columns, frame_start);
562
160
    }
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
537
4
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
4
        if ((this->has_set_value()) &&
541
4
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
0
            return;
543
0
        }
544
4
        DCHECK_LE(frame_start, frame_end);
545
4
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
0
            this->set_is_null();
547
0
            return;
548
0
        }
549
4
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
4
        if constexpr (arg_ignore_null) {
552
4
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
4
            if (columns[0]->is_nullable()) {
554
0
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
0
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
0
                    frame_start++;
558
0
                }
559
0
            }
560
4
        }
561
4
        this->set_value(columns, frame_start);
562
4
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
537
44
                                int64_t frame_end, const IColumn** columns) {
538
        // case 1: (has_set_value() = true && arg_ignore_null = false)
539
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
540
44
        if ((this->has_set_value()) &&
541
44
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
542
14
            return;
543
14
        }
544
44
        DCHECK_LE(frame_start, frame_end);
545
30
        if (frame_start >= partition_end || frame_end <= partition_start) {
546
6
            this->set_is_null();
547
6
            return;
548
6
        }
549
24
        frame_start = std::max<int64_t>(frame_start, partition_start);
550
551
24
        if constexpr (arg_ignore_null) {
552
24
            frame_end = std::min<int64_t>(frame_end, partition_end);
553
24
            if (columns[0]->is_nullable()) {
554
24
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
555
                // the valid range is: [frame_start, frame_end)
556
33
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
557
9
                    frame_start++;
558
9
                }
559
24
            }
560
24
        }
561
24
        this->set_value(columns, frame_start);
562
24
    }
563
564
122
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
564
1
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
564
17
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
564
90
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
Line
Count
Source
564
5
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
564
9
    static const char* name() { return "first_value"; }
565
};
566
567
template <typename Data, bool arg_ignore_null = false>
568
struct WindowFunctionLastImpl : Data {
569
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
570
353
                                int64_t frame_end, const IColumn** columns) {
571
353
        DCHECK_LE(frame_start, frame_end);
572
353
        if ((frame_end <= partition_start) ||
573
353
            (frame_start >= partition_end)) { //beyond or under partition, set null
574
26
            if ((this->has_set_value()) &&
575
26
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
576
                // have set value, do nothing, because like rows unbouned preceding and M following
577
                // it's caculated as the cumulative mode, so it's could reuse the previous
578
26
            } else {
579
26
                this->set_is_null();
580
26
            }
581
26
            return;
582
26
        }
583
327
        frame_end = std::min<int64_t>(frame_end, partition_end);
584
585
327
        if constexpr (arg_ignore_null) {
586
63
            frame_start = std::max<int64_t>(frame_start, partition_start);
587
63
            if (columns[0]->is_nullable()) {
588
63
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
589
                // wants find a not null value in [frame_start, frame_end)
590
                // iff has find: set_value and return directly
591
                // iff not find: the while loop is finished
592
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
593
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
594
104
                while (frame_start < frame_end) {
595
80
                    if (arg_nullable.is_null_at(frame_end - 1)) {
596
41
                        frame_end--;
597
41
                    } else {
598
39
                        this->set_value(columns, frame_end - 1);
599
39
                        return;
600
39
                    }
601
80
                }
602
24
                if (!this->has_set_value()) {
603
9
                    this->set_is_null();
604
9
                }
605
24
                return;
606
63
            }
607
63
        }
608
609
0
        this->set_value(columns, frame_end - 1);
610
327
    }
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
570
25
                                int64_t frame_end, const IColumn** columns) {
571
25
        DCHECK_LE(frame_start, frame_end);
572
25
        if ((frame_end <= partition_start) ||
573
25
            (frame_start >= partition_end)) { //beyond or under partition, set null
574
4
            if ((this->has_set_value()) &&
575
4
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
576
                // have set value, do nothing, because like rows unbouned preceding and M following
577
                // it's caculated as the cumulative mode, so it's could reuse the previous
578
4
            } else {
579
4
                this->set_is_null();
580
4
            }
581
4
            return;
582
4
        }
583
21
        frame_end = std::min<int64_t>(frame_end, partition_end);
584
585
        if constexpr (arg_ignore_null) {
586
            frame_start = std::max<int64_t>(frame_start, partition_start);
587
            if (columns[0]->is_nullable()) {
588
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
589
                // wants find a not null value in [frame_start, frame_end)
590
                // iff has find: set_value and return directly
591
                // iff not find: the while loop is finished
592
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
593
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
594
                while (frame_start < frame_end) {
595
                    if (arg_nullable.is_null_at(frame_end - 1)) {
596
                        frame_end--;
597
                    } else {
598
                        this->set_value(columns, frame_end - 1);
599
                        return;
600
                    }
601
                }
602
                if (!this->has_set_value()) {
603
                    this->set_is_null();
604
                }
605
                return;
606
            }
607
        }
608
609
21
        this->set_value(columns, frame_end - 1);
610
21
    }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
570
265
                                int64_t frame_end, const IColumn** columns) {
571
265
        DCHECK_LE(frame_start, frame_end);
572
265
        if ((frame_end <= partition_start) ||
573
265
            (frame_start >= partition_end)) { //beyond or under partition, set null
574
22
            if ((this->has_set_value()) &&
575
22
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
576
                // have set value, do nothing, because like rows unbouned preceding and M following
577
                // it's caculated as the cumulative mode, so it's could reuse the previous
578
22
            } else {
579
22
                this->set_is_null();
580
22
            }
581
22
            return;
582
22
        }
583
243
        frame_end = std::min<int64_t>(frame_end, partition_end);
584
585
        if constexpr (arg_ignore_null) {
586
            frame_start = std::max<int64_t>(frame_start, partition_start);
587
            if (columns[0]->is_nullable()) {
588
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
589
                // wants find a not null value in [frame_start, frame_end)
590
                // iff has find: set_value and return directly
591
                // iff not find: the while loop is finished
592
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
593
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
594
                while (frame_start < frame_end) {
595
                    if (arg_nullable.is_null_at(frame_end - 1)) {
596
                        frame_end--;
597
                    } else {
598
                        this->set_value(columns, frame_end - 1);
599
                        return;
600
                    }
601
                }
602
                if (!this->has_set_value()) {
603
                    this->set_is_null();
604
                }
605
                return;
606
            }
607
        }
608
609
243
        this->set_value(columns, frame_end - 1);
610
243
    }
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
570
63
                                int64_t frame_end, const IColumn** columns) {
571
63
        DCHECK_LE(frame_start, frame_end);
572
63
        if ((frame_end <= partition_start) ||
573
63
            (frame_start >= partition_end)) { //beyond or under partition, set null
574
0
            if ((this->has_set_value()) &&
575
0
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
576
                // have set value, do nothing, because like rows unbouned preceding and M following
577
                // it's caculated as the cumulative mode, so it's could reuse the previous
578
0
            } else {
579
0
                this->set_is_null();
580
0
            }
581
0
            return;
582
0
        }
583
63
        frame_end = std::min<int64_t>(frame_end, partition_end);
584
585
63
        if constexpr (arg_ignore_null) {
586
63
            frame_start = std::max<int64_t>(frame_start, partition_start);
587
63
            if (columns[0]->is_nullable()) {
588
63
                const auto& arg_nullable = assert_cast<const ColumnNullable&>(*columns[0]);
589
                // wants find a not null value in [frame_start, frame_end)
590
                // iff has find: set_value and return directly
591
                // iff not find: the while loop is finished
592
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
593
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
594
104
                while (frame_start < frame_end) {
595
80
                    if (arg_nullable.is_null_at(frame_end - 1)) {
596
41
                        frame_end--;
597
41
                    } else {
598
39
                        this->set_value(columns, frame_end - 1);
599
39
                        return;
600
39
                    }
601
80
                }
602
24
                if (!this->has_set_value()) {
603
9
                    this->set_is_null();
604
9
                }
605
24
                return;
606
63
            }
607
63
        }
608
609
0
        this->set_value(columns, frame_end - 1);
610
63
    }
611
612
121
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
612
7
    static const char* name() { return "last_value"; }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
612
100
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
612
14
    static const char* name() { return "last_value"; }
613
};
614
615
template <typename Data, bool = false>
616
struct WindowFunctionNthValueImpl : Data {
617
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
618
232
                                int64_t frame_end, const IColumn** columns) {
619
232
        DCHECK_LE(frame_start, frame_end);
620
232
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
621
232
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
622
232
        this->_frame_start_pose =
623
232
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
624
232
        this->_frame_total_rows += real_frame_end - real_frame_start;
625
232
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
626
232
                                 .get_data()[0] -
627
232
                         1;
628
232
        if (offset >= this->_frame_total_rows) {
629
            // offset is beyond the frame, so set null
630
101
            this->set_is_null();
631
101
            return;
632
101
        }
633
131
        this->set_value(columns, offset + this->_frame_start_pose);
634
131
    }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
618
232
                                int64_t frame_end, const IColumn** columns) {
619
232
        DCHECK_LE(frame_start, frame_end);
620
232
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
621
232
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
622
232
        this->_frame_start_pose =
623
232
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
624
232
        this->_frame_total_rows += real_frame_end - real_frame_start;
625
232
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
626
232
                                 .get_data()[0] -
627
232
                         1;
628
232
        if (offset >= this->_frame_total_rows) {
629
            // offset is beyond the frame, so set null
630
101
            this->set_is_null();
631
101
            return;
632
101
        }
633
131
        this->set_value(columns, offset + this->_frame_start_pose);
634
131
    }
635
636
99
    static const char* name() { return "nth_value"; }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE4nameEv
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
636
99
    static const char* name() { return "nth_value"; }
637
};
638
639
template <typename Data>
640
class WindowFunctionData final
641
        : public IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>> {
642
public:
643
    WindowFunctionData(const DataTypes& argument_types_)
644
152
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
152
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
6
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
6
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
25
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
25
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
2
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
2
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
24
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
24
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
15
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
15
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
1
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
5
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
5
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
26
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
26
              _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
644
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
5
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
5
              _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
644
3
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
3
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
644
29
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
29
              _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
644
8
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
645
8
              _argument_type(argument_types_[0]) {}
646
647
626
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
26
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
4
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
123
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
2
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
4
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
125
    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
647
99
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
1
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
17
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
90
    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
647
5
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
9
    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
647
7
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
647
100
    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
647
14
    String get_name() const override { return Data::name(); }
648
649
778
    DataTypePtr get_return_type() const override {
650
778
        if constexpr (Data::result_nullable) {
651
740
            return make_nullable(_argument_type);
652
740
        } else {
653
38
            return _argument_type;
654
38
        }
655
778
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
32
    DataTypePtr get_return_type() const override {
650
        if constexpr (Data::result_nullable) {
651
            return make_nullable(_argument_type);
652
32
        } else {
653
32
            return _argument_type;
654
32
        }
655
32
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
5
    DataTypePtr get_return_type() const override {
650
5
        if constexpr (Data::result_nullable) {
651
5
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
5
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
148
    DataTypePtr get_return_type() const override {
650
148
        if constexpr (Data::result_nullable) {
651
148
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
148
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
4
    DataTypePtr get_return_type() const override {
650
        if constexpr (Data::result_nullable) {
651
            return make_nullable(_argument_type);
652
4
        } else {
653
4
            return _argument_type;
654
4
        }
655
4
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
5
    DataTypePtr get_return_type() const override {
650
5
        if constexpr (Data::result_nullable) {
651
5
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
5
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
149
    DataTypePtr get_return_type() const override {
650
149
        if constexpr (Data::result_nullable) {
651
149
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
149
    }
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
649
114
    DataTypePtr get_return_type() const override {
650
114
        if constexpr (Data::result_nullable) {
651
114
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
114
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
2
    DataTypePtr get_return_type() const override {
650
        if constexpr (Data::result_nullable) {
651
            return make_nullable(_argument_type);
652
2
        } else {
653
2
            return _argument_type;
654
2
        }
655
2
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
22
    DataTypePtr get_return_type() const override {
650
22
        if constexpr (Data::result_nullable) {
651
22
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
22
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
116
    DataTypePtr get_return_type() const override {
650
116
        if constexpr (Data::result_nullable) {
651
116
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
116
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE15get_return_typeEv
Line
Count
Source
649
6
    DataTypePtr get_return_type() const override {
650
6
        if constexpr (Data::result_nullable) {
651
6
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
6
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE15get_return_typeEv
Line
Count
Source
649
14
    DataTypePtr get_return_type() const override {
650
14
        if constexpr (Data::result_nullable) {
651
14
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
14
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
10
    DataTypePtr get_return_type() const override {
650
10
        if constexpr (Data::result_nullable) {
651
10
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
10
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
649
129
    DataTypePtr get_return_type() const override {
650
129
        if constexpr (Data::result_nullable) {
651
129
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
129
    }
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
649
22
    DataTypePtr get_return_type() const override {
650
22
        if constexpr (Data::result_nullable) {
651
22
            return make_nullable(_argument_type);
652
        } else {
653
            return _argument_type;
654
        }
655
22
    }
656
657
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
658
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
659
1.59k
                                Arena&, UInt8*, UInt8*) const override {
660
1.59k
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
1.59k
                                                 frame_end, columns);
662
1.59k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
36
                                Arena&, UInt8*, UInt8*) const override {
660
36
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
36
                                                 frame_end, columns);
662
36
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
7
                                Arena&, UInt8*, UInt8*) const override {
660
7
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
7
                                                 frame_end, columns);
662
7
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
296
                                Arena&, UInt8*, UInt8*) const override {
660
296
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
296
                                                 frame_end, columns);
662
296
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
20
                                Arena&, UInt8*, UInt8*) const override {
660
20
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
20
                                                 frame_end, columns);
662
20
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
4
                                Arena&, UInt8*, UInt8*) const override {
660
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
4
                                                 frame_end, columns);
662
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
245
                                Arena&, UInt8*, UInt8*) const override {
660
245
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
245
                                                 frame_end, columns);
662
245
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
232
                                Arena&, UInt8*, UInt8*) const override {
660
232
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
232
                                                 frame_end, columns);
662
232
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
5
                                Arena&, UInt8*, UInt8*) const override {
660
5
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
5
                                                 frame_end, columns);
662
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
35
                                Arena&, UInt8*, UInt8*) const override {
660
35
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
35
                                                 frame_end, columns);
662
35
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
313
                                Arena&, UInt8*, UInt8*) const override {
660
313
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
313
                                                 frame_end, columns);
662
313
    }
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
659
4
                                Arena&, UInt8*, UInt8*) const override {
660
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
4
                                                 frame_end, columns);
662
4
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
44
                                Arena&, UInt8*, UInt8*) const override {
660
44
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
44
                                                 frame_end, columns);
662
44
    }
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
659
25
                                Arena&, UInt8*, UInt8*) const override {
660
25
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
25
                                                 frame_end, columns);
662
25
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
659
265
                                Arena&, UInt8*, UInt8*) const override {
660
265
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
265
                                                 frame_end, columns);
662
265
    }
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
659
63
                                Arena&, UInt8*, UInt8*) const override {
660
63
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
661
63
                                                 frame_end, columns);
662
63
    }
663
664
863
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
664
6
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
664
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
664
81
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
664
1
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
664
47
    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
664
182
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
664
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
664
33
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
664
190
    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
664
4
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5resetEPc
Line
Count
Source
664
29
    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
664
29
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
664
222
    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
664
33
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
665
666
1.59k
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
1.59k
        this->data(place).insert_result_into(to);
668
1.59k
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
30
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
30
        this->data(place).insert_result_into(to);
668
30
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
4
        this->data(place).insert_result_into(to);
668
4
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
217
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
217
        this->data(place).insert_result_into(to);
668
217
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
20
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
20
        this->data(place).insert_result_into(to);
668
20
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
4
        this->data(place).insert_result_into(to);
668
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
245
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
245
        this->data(place).insert_result_into(to);
668
245
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
230
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
230
        this->data(place).insert_result_into(to);
668
230
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
5
        this->data(place).insert_result_into(to);
668
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
35
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
35
        this->data(place).insert_result_into(to);
668
35
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
322
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
322
        this->data(place).insert_result_into(to);
668
322
    }
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
666
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
5
        this->data(place).insert_result_into(to);
668
5
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
44
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
44
        this->data(place).insert_result_into(to);
668
44
    }
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
666
25
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
25
        this->data(place).insert_result_into(to);
668
25
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
666
340
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
340
        this->data(place).insert_result_into(to);
668
340
    }
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
666
69
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
667
69
        this->data(place).insert_result_into(to);
668
69
    }
669
670
    void add(AggregateDataPtr place, const IColumn** columns, ssize_t row_num,
671
0
             Arena&) const override {
672
0
        throw doris::Exception(Status::FatalError("WindowFunctionLeadLagData do not support add"));
673
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
674
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {
675
0
        throw doris::Exception(
676
0
                Status::FatalError("WindowFunctionLeadLagData do not support merge"));
677
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
678
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {
679
0
        throw doris::Exception(
680
0
                Status::FatalError("WindowFunctionLeadLagData do not support serialize"));
681
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
682
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {
683
0
        throw doris::Exception(
684
0
                Status::FatalError("WindowFunctionLeadLagData do not support deserialize"));
685
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
686
687
private:
688
    DataTypePtr _argument_type;
689
};
690
691
} // namespace doris