Coverage Report

Created: 2026-08-27 08:50

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
224
            : IAggregateFunctionDataHelper(argument_types_) {}
54
55
798
    String get_name() const override { return "row_number"; }
56
57
28.7k
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
58
59
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {
60
0
        ++data(place).count;
61
0
    }
62
63
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
64
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
65
27.7k
                                Arena&, UInt8*, UInt8*) const override {
66
27.7k
        ++data(place).count;
67
27.7k
    }
68
69
356
    void reset(AggregateDataPtr place) const override {
70
356
        WindowFunctionRowNumber::data(place).count = 0;
71
356
    }
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
799
    bool result_column_could_resize() const override { return true; }
79
80
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
81
27.7k
                                  const size_t start, const size_t end) const override {
82
27.7k
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
83
55.5k
        for (size_t i = start; i < end; ++i) {
84
27.7k
            column.get_data()[i] = (doris::WindowFunctionRowNumber::data(place).count);
85
27.7k
        }
86
27.7k
    }
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
174
            : IAggregateFunctionDataHelper(argument_types_) {}
103
104
999
    String get_name() const override { return "rank"; }
105
106
2.22k
    DataTypePtr get_return_type() const override { return std::make_shared<DataTypeInt64>(); }
107
108
0
    void add(AggregateDataPtr place, const IColumn**, ssize_t, Arena&) const override {
109
0
        ++data(place).rank;
110
0
    }
111
112
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
113
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
114
1.05k
                                Arena&, UInt8*, UInt8*) const override {
115
1.05k
        int64_t peer_group_count = frame_end - frame_start;
116
1.05k
        if (WindowFunctionRank::data(place).peer_group_start != frame_start) {
117
1.05k
            WindowFunctionRank::data(place).peer_group_start = frame_start;
118
1.05k
            WindowFunctionRank::data(place).rank += WindowFunctionRank::data(place).count;
119
1.05k
        }
120
1.05k
        WindowFunctionRank::data(place).count = peer_group_count;
121
1.05k
    }
122
123
557
    void reset(AggregateDataPtr place) const override {
124
557
        WindowFunctionRank::data(place).rank = 0;
125
557
        WindowFunctionRank::data(place).count = 1;
126
557
        WindowFunctionRank::data(place).peer_group_start = -1;
127
557
    }
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
998
    bool result_column_could_resize() const override { return true; }
135
136
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
137
1.05k
                                  const size_t start, const size_t end) const override {
138
1.05k
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
139
2.80k
        for (size_t i = start; i < end; ++i) {
140
1.75k
            column.get_data()[i] = (doris::WindowFunctionRank::data(place).rank);
141
1.75k
        }
142
1.05k
    }
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
52
    String get_name() const override { return "dense_rank"; }
161
162
96
    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
37
                                Arena&, UInt8*, UInt8*) const override {
171
37
        if (WindowFunctionDenseRank::data(place).peer_group_start != frame_start) {
172
37
            WindowFunctionDenseRank::data(place).peer_group_start = frame_start;
173
37
            WindowFunctionDenseRank::data(place).rank++;
174
37
        }
175
37
    }
176
177
22
    void reset(AggregateDataPtr place) const override {
178
22
        WindowFunctionDenseRank::data(place).rank = 0;
179
22
        WindowFunctionDenseRank::data(place).peer_group_start = -1;
180
22
    }
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
52
    bool result_column_could_resize() const override { return true; }
188
189
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
190
37
                                  const size_t start, const size_t end) const override {
191
37
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
192
86
        for (size_t i = start; i < end; ++i) {
193
49
            column.get_data()[i] = (doris::WindowFunctionDenseRank::data(place).rank);
194
49
        }
195
37
    }
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
55
    static double _cal_percent(int64_t rank, int64_t total_rows) {
213
55
        return total_rows <= 1 ? 0.0 : double(rank - 1) * 1.0 / double(total_rows - 1);
214
55
    }
215
216
public:
217
    WindowFunctionPercentRank(const DataTypes& argument_types_)
218
4
            : IAggregateFunctionDataHelper(argument_types_) {}
219
220
36
    String get_name() const override { return "percent_rank"; }
221
222
95
    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
55
                                Arena&, UInt8*, UInt8*) const override {
229
55
        int64_t peer_group_count = frame_end - frame_start;
230
55
        if (WindowFunctionPercentRank::data(place).peer_group_start != frame_start) {
231
55
            WindowFunctionPercentRank::data(place).peer_group_start = frame_start;
232
55
            WindowFunctionPercentRank::data(place).rank +=
233
55
                    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
55
            WindowFunctionPercentRank::data(place).partition_size = partition_end - partition_start;
237
55
        }
238
55
        WindowFunctionPercentRank::data(place).count = peer_group_count;
239
55
    }
240
241
47
    void reset(AggregateDataPtr place) const override {
242
47
        WindowFunctionPercentRank::data(place).rank = 0;
243
47
        WindowFunctionPercentRank::data(place).count = 1;
244
47
        WindowFunctionPercentRank::data(place).peer_group_start = -1;
245
47
        WindowFunctionPercentRank::data(place).partition_size = 0;
246
47
    }
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
36
    bool result_column_could_resize() const override { return true; }
255
256
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
257
55
                                  const size_t start, const size_t end) const override {
258
55
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
259
55
        auto percent_rank = _cal_percent(data(place).rank, data(place).partition_size);
260
114
        for (size_t i = start; i < end; ++i) {
261
59
            column.get_data()[i] = percent_rank;
262
59
        }
263
55
    }
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
15
                              int64_t partition_end) {
281
15
        if (data(place).denominator == 0) {
282
7
            data(place).denominator = partition_end - partition_start;
283
7
        }
284
15
    }
285
286
public:
287
    WindowFunctionCumeDist(const DataTypes& argument_types_)
288
2
            : IAggregateFunctionDataHelper(argument_types_) {}
289
290
26
    String get_name() const override { return "cume_dist"; }
291
292
43
    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
15
                                Arena&, UInt8*, UInt8*) const override {
299
15
        check_default(place, partition_start, partition_end);
300
15
        int64_t peer_group_count = frame_end - frame_start;
301
15
        if (WindowFunctionCumeDist::data(place).peer_group_start != frame_start) {
302
15
            WindowFunctionCumeDist::data(place).peer_group_start = frame_start;
303
15
            WindowFunctionCumeDist::data(place).numerator += peer_group_count;
304
15
        }
305
15
    }
306
307
7
    void reset(AggregateDataPtr place) const override {
308
7
        WindowFunctionCumeDist::data(place).numerator = 0;
309
7
        WindowFunctionCumeDist::data(place).denominator = 0;
310
7
        WindowFunctionCumeDist::data(place).peer_group_start = -1;
311
7
    }
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
26
    bool result_column_could_resize() const override { return true; }
320
321
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
322
15
                                  const size_t start, const size_t end) const override {
323
15
        auto& column = assert_cast<ColumnFloat64&, TypeCheckOnRelease::DISABLE>(to);
324
15
        auto cume_dist = (double)data(place).numerator * 1.0 / (double)data(place).denominator;
325
34
        for (size_t i = start; i < end; ++i) {
326
19
            column.get_data()[i] = cume_dist;
327
19
        }
328
15
    }
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
6
            : IAggregateFunctionDataHelper(argument_types_) {}
347
348
66
    String get_name() const override { return "ntile"; }
349
350
131
    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
60
                                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
60
        int64_t row_index = ++WindowFunctionNTile::data(place).rows - 1;
361
60
        int64_t bucket_num = columns[0]->get_int(0);
362
60
        int64_t partition_size = partition_end - partition_start;
363
364
60
        int64_t small_bucket_size = partition_size / bucket_num;
365
60
        int64_t big_bucket_num = partition_size % bucket_num;
366
60
        int64_t first_small_bucket_row_index = big_bucket_num * (small_bucket_size + 1);
367
60
        if (row_index >= first_small_bucket_row_index) {
368
            // small_bucket_size can't be zero
369
30
            WindowFunctionNTile::data(place).bucket_index =
370
30
                    big_bucket_num + 1 +
371
30
                    (row_index - first_small_bucket_row_index) / small_bucket_size;
372
30
        } else {
373
30
            WindowFunctionNTile::data(place).bucket_index = row_index / (small_bucket_size + 1) + 1;
374
30
        }
375
60
    }
376
377
15
    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
66
    bool result_column_could_resize() const override { return true; }
385
386
    void insert_result_into_range(ConstAggregateDataPtr __restrict place, IColumn& to,
387
60
                                  const size_t start, const size_t end) const override {
388
60
        auto& column = assert_cast<ColumnInt64&, TypeCheckOnRelease::DISABLE>(to);
389
120
        for (size_t i = start; i < end; ++i) {
390
60
            column.get_data()[i] = WindowFunctionNTile::data(place).bucket_index;
391
60
        }
392
60
    }
393
394
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {}
395
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {}
396
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {}
397
};
398
399
template <bool result_is_nullable, bool arg_is_nullable>
400
struct FirstLastData
401
        : public ReaderFirstAndLastData<void, result_is_nullable, arg_is_nullable, false> {
402
public:
403
366
    void set_is_null() { this->_data_value.reset(); }
Unexecuted instantiation: _ZN5doris13FirstLastDataILb0ELb0EE11set_is_nullEv
Unexecuted instantiation: _ZN5doris13FirstLastDataILb0ELb1EE11set_is_nullEv
_ZN5doris13FirstLastDataILb1ELb0EE11set_is_nullEv
Line
Count
Source
403
209
    void set_is_null() { this->_data_value.reset(); }
_ZN5doris13FirstLastDataILb1ELb1EE11set_is_nullEv
Line
Count
Source
403
157
    void set_is_null() { this->_data_value.reset(); }
404
};
405
406
template <bool result_is_nullable, bool arg_is_nullable>
407
struct NthValueData : public FirstLastData<result_is_nullable, arg_is_nullable> {
408
public:
409
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
609
    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
601
    bool is_null() const { return this->_ptr == nullptr; }
424
    // because _ptr pointer to first_argument or third argument, so it's difficult to cast ptr
425
    // so here will call virtual function
426
1.25k
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb0EE9get_valueEv
Line
Count
Source
426
847
    StringRef get_value() const { return this->_ptr->get_data_at(this->_offset); }
_ZNK5doris9BaseValueILb1EE9get_valueEv
Line
Count
Source
426
406
    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
308
    void reset() {
434
308
        _data_value.reset();
435
308
        _is_inited = false;
436
308
        _offset_value = 0;
437
308
    }
_ZN5doris11LeadLagDataILb0ELb0EE5resetEv
Line
Count
Source
433
158
    void reset() {
434
158
        _data_value.reset();
435
158
        _is_inited = false;
436
158
        _offset_value = 0;
437
158
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE5resetEv
_ZN5doris11LeadLagDataILb1ELb0EE5resetEv
Line
Count
Source
433
3
    void reset() {
434
3
        _data_value.reset();
435
3
        _is_inited = false;
436
3
        _offset_value = 0;
437
3
    }
_ZN5doris11LeadLagDataILb1ELb1EE5resetEv
Line
Count
Source
433
147
    void reset() {
434
147
        _data_value.reset();
435
147
        _is_inited = false;
436
147
        _offset_value = 0;
437
147
    }
438
439
1.45k
    void insert_result_into(IColumn& to) const {
440
1.45k
        if constexpr (result_is_nullable) {
441
609
            if (_data_value.is_null()) {
442
201
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
201
                col.insert_default();
444
408
            } else {
445
408
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
408
                StringRef value = _data_value.get_value();
447
408
                col.insert_data(value.data, value.size);
448
408
            }
449
845
        } else {
450
845
            StringRef value = _data_value.get_value();
451
845
            to.insert_data(value.data, value.size);
452
845
        }
453
1.45k
    }
_ZNK5doris11LeadLagDataILb0ELb0EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
845
    void insert_result_into(IColumn& to) const {
440
        if constexpr (result_is_nullable) {
441
            if (_data_value.is_null()) {
442
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
                col.insert_default();
444
            } else {
445
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
                StringRef value = _data_value.get_value();
447
                col.insert_data(value.data, value.size);
448
            }
449
845
        } else {
450
845
            StringRef value = _data_value.get_value();
451
845
            to.insert_data(value.data, value.size);
452
845
        }
453
845
    }
Unexecuted instantiation: _ZNK5doris11LeadLagDataILb0ELb1EE18insert_result_intoERNS_7IColumnE
_ZNK5doris11LeadLagDataILb1ELb0EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
8
    void insert_result_into(IColumn& to) const {
440
8
        if constexpr (result_is_nullable) {
441
8
            if (_data_value.is_null()) {
442
6
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
6
                col.insert_default();
444
6
            } else {
445
2
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
2
                StringRef value = _data_value.get_value();
447
2
                col.insert_data(value.data, value.size);
448
2
            }
449
        } else {
450
            StringRef value = _data_value.get_value();
451
            to.insert_data(value.data, value.size);
452
        }
453
8
    }
_ZNK5doris11LeadLagDataILb1ELb1EE18insert_result_intoERNS_7IColumnE
Line
Count
Source
439
601
    void insert_result_into(IColumn& to) const {
440
601
        if constexpr (result_is_nullable) {
441
601
            if (_data_value.is_null()) {
442
195
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
443
195
                col.insert_default();
444
406
            } else {
445
406
                auto& col = assert_cast<ColumnNullable&, TypeCheckOnRelease::DISABLE>(to);
446
406
                StringRef value = _data_value.get_value();
447
406
                col.insert_data(value.data, value.size);
448
406
            }
449
        } else {
450
            StringRef value = _data_value.get_value();
451
            to.insert_data(value.data, value.size);
452
        }
453
601
    }
454
455
1.00k
    void set_value(const IColumn** columns, size_t pos) {
456
1.00k
        if constexpr (arg_is_nullable) {
457
448
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
448
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
448
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
445
        _data_value.set_value(columns[0], pos);
466
1.00k
    }
_ZN5doris11LeadLagDataILb0ELb0EE9set_valueEPPKNS_7IColumnEm
Line
Count
Source
455
551
    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
551
        _data_value.set_value(columns[0], pos);
466
551
    }
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
448
    void set_value(const IColumn** columns, size_t pos) {
456
448
        if constexpr (arg_is_nullable) {
457
448
            if (assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(columns[0])
458
448
                        ->is_null_at(pos)) {
459
                // ptr == nullptr means nullable
460
3
                _data_value.reset();
461
3
                return;
462
3
            }
463
448
        }
464
        // here ptr is pointer to nullable column or not null column from first
465
445
        _data_value.set_value(columns[0], pos);
466
448
    }
467
468
568
    void set_value_from_default(const IColumn* column, size_t pos) {
469
568
        DCHECK_GE(pos, 0);
470
568
        if (is_column_nullable(*column)) {
471
207
            const auto* nullable_column =
472
207
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
207
            if (nullable_column->is_null_at(pos)) {
474
201
                this->_data_value.reset();
475
201
            } else {
476
6
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
6
            }
478
361
        } else {
479
361
            this->_data_value.set_value(column, pos);
480
361
        }
481
568
    }
_ZN5doris11LeadLagDataILb0ELb0EE22set_value_from_defaultEPKNS_7IColumnEm
Line
Count
Source
468
301
    void set_value_from_default(const IColumn* column, size_t pos) {
469
301
        DCHECK_GE(pos, 0);
470
301
        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
301
        } else {
479
301
            this->_data_value.set_value(column, pos);
480
301
        }
481
301
    }
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
261
    void set_value_from_default(const IColumn* column, size_t pos) {
469
261
        DCHECK_GE(pos, 0);
470
261
        if (is_column_nullable(*column)) {
471
201
            const auto* nullable_column =
472
201
                    assert_cast<const ColumnNullable*, TypeCheckOnRelease::DISABLE>(column);
473
201
            if (nullable_column->is_null_at(pos)) {
474
195
                this->_data_value.reset();
475
195
            } else {
476
6
                this->_data_value.set_value(nullable_column->get_nested_column_ptr().get(), pos);
477
6
            }
478
201
        } else {
479
60
            this->_data_value.set_value(column, pos);
480
60
        }
481
261
    }
482
483
568
    void set_offset_value(const IColumn* column) {
484
568
        if (!_is_inited) {
485
519
            const auto* column_number =
486
519
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
519
            _offset_value = column_number->get_data()[0];
488
519
            _is_inited = true;
489
519
        }
490
568
    }
_ZN5doris11LeadLagDataILb0ELb0EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
301
    void set_offset_value(const IColumn* column) {
484
301
        if (!_is_inited) {
485
300
            const auto* column_number =
486
300
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
300
            _offset_value = column_number->get_data()[0];
488
300
            _is_inited = true;
489
300
        }
490
301
    }
Unexecuted instantiation: _ZN5doris11LeadLagDataILb0ELb1EE16set_offset_valueEPKNS_7IColumnE
_ZN5doris11LeadLagDataILb1ELb0EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
6
    void set_offset_value(const IColumn* column) {
484
6
        if (!_is_inited) {
485
6
            const auto* column_number =
486
6
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
6
            _offset_value = column_number->get_data()[0];
488
6
            _is_inited = true;
489
6
        }
490
6
    }
_ZN5doris11LeadLagDataILb1ELb1EE16set_offset_valueEPKNS_7IColumnE
Line
Count
Source
483
261
    void set_offset_value(const IColumn* column) {
484
261
        if (!_is_inited) {
485
213
            const auto* column_number =
486
213
                    assert_cast<const ColumnInt64*, TypeCheckOnRelease::DISABLE>(column);
487
213
            _offset_value = column_number->get_data()[0];
488
213
            _is_inited = true;
489
213
        }
490
261
    }
491
492
568
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb0ELb0EE16get_offset_valueEv
Line
Count
Source
492
301
    int64_t get_offset_value() const { return _offset_value; }
Unexecuted instantiation: _ZNK5doris11LeadLagDataILb0ELb1EE16get_offset_valueEv
_ZNK5doris11LeadLagDataILb1ELb0EE16get_offset_valueEv
Line
Count
Source
492
6
    int64_t get_offset_value() const { return _offset_value; }
_ZNK5doris11LeadLagDataILb1ELb1EE16get_offset_valueEv
Line
Count
Source
492
261
    int64_t get_offset_value() const { return _offset_value; }
493
494
private:
495
    BaseValue<arg_is_nullable> _data_value;
496
    bool _is_inited = false;
497
    int64_t _offset_value = 0;
498
};
499
500
template <typename Data, bool = false>
501
struct WindowFunctionLeadImpl : Data {
502
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
503
452
                                int64_t frame_end, const IColumn** columns) {
504
452
        if (frame_end > partition_end) { //output default value, win end is under partition
505
145
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
145
            auto pos = frame_end - 1 - this->get_offset_value();
509
145
            this->set_value_from_default(columns[2], pos);
510
145
            return;
511
145
        }
512
307
        this->set_value(columns, frame_end - 1);
513
307
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
42
                                int64_t frame_end, const IColumn** columns) {
504
42
        if (frame_end > partition_end) { //output default value, win end is under partition
505
8
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
8
            auto pos = frame_end - 1 - this->get_offset_value();
509
8
            this->set_value_from_default(columns[2], pos);
510
8
            return;
511
8
        }
512
34
        this->set_value(columns, frame_end - 1);
513
34
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
7
                                int64_t frame_end, const IColumn** columns) {
504
7
        if (frame_end > partition_end) { //output default value, win end is under partition
505
3
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
3
            auto pos = frame_end - 1 - this->get_offset_value();
509
3
            this->set_value_from_default(columns[2], pos);
510
3
            return;
511
3
        }
512
4
        this->set_value(columns, frame_end - 1);
513
4
    }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
503
403
                                int64_t frame_end, const IColumn** columns) {
504
403
        if (frame_end > partition_end) { //output default value, win end is under partition
505
134
            this->set_offset_value(columns[1]);
506
            // eg: lead(column, 10, default_value), column size maybe 3 rows
507
            // offset value 10 is from second argument, pos: 11 is calculated as frame_end
508
134
            auto pos = frame_end - 1 - this->get_offset_value();
509
134
            this->set_value_from_default(columns[2], pos);
510
134
            return;
511
134
        }
512
269
        this->set_value(columns, frame_end - 1);
513
269
    }
514
515
736
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
515
52
    static const char* name() { return "lead"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
515
14
    static const char* name() { return "lead"; }
_ZN5doris22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
515
670
    static const char* name() { return "lead"; }
516
};
517
518
template <typename Data, bool = false>
519
struct WindowFunctionLagImpl : Data {
520
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
521
1.12k
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
1.12k
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
423
            this->set_offset_value(columns[1]);
525
423
            auto pos = frame_end - 1 + this->get_offset_value();
526
423
            this->set_value_from_default(columns[2], pos);
527
423
            return;
528
423
        }
529
697
        this->set_value(columns, frame_end - 1);
530
697
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
810
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
810
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
293
            this->set_offset_value(columns[1]);
525
293
            auto pos = frame_end - 1 + this->get_offset_value();
526
293
            this->set_value_from_default(columns[2], pos);
527
293
            return;
528
293
        }
529
517
        this->set_value(columns, frame_end - 1);
530
517
    }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
4
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
4
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
3
            this->set_offset_value(columns[1]);
525
3
            auto pos = frame_end - 1 + this->get_offset_value();
526
3
            this->set_value_from_default(columns[2], pos);
527
3
            return;
528
3
        }
529
1
        this->set_value(columns, frame_end - 1);
530
1
    }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
521
306
                                int64_t frame_end, const IColumn** columns) {
522
        // window start is beyond partition
523
306
        if (partition_start >= frame_end) { //[unbound preceding(0), offset preceding(-123)]
524
127
            this->set_offset_value(columns[1]);
525
127
            auto pos = frame_end - 1 + this->get_offset_value();
526
127
            this->set_value_from_default(columns[2], pos);
527
127
            return;
528
127
        }
529
179
        this->set_value(columns, frame_end - 1);
530
179
    }
531
532
1.98k
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
532
1.42k
    static const char* name() { return "lag"; }
Unexecuted instantiation: _ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EE4nameEv
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
532
11
    static const char* name() { return "lag"; }
_ZN5doris21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
532
548
    static const char* name() { return "lag"; }
533
};
534
535
template <typename Data, bool arg_ignore_null = false>
536
struct WindowFunctionFirstImpl : Data {
537
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
538
1.25k
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
1.25k
        if ((this->has_set_value()) &&
542
1.25k
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
604
            return;
544
604
        }
545
1.25k
        DCHECK_LE(frame_start, frame_end);
546
654
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
26
            this->set_is_null();
548
26
            return;
549
26
        }
550
628
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
628
        if constexpr (arg_ignore_null) {
553
33
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
33
            if (is_column_nullable(*columns[0])) {
555
29
                const auto& arg_nullable =
556
29
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
29
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
38
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
9
                    frame_start++;
561
9
                }
562
29
            }
563
33
        }
564
628
        this->set_value(columns, frame_start);
565
628
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
5
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
5
        if ((this->has_set_value()) &&
542
5
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
2
            return;
544
2
        }
545
5
        DCHECK_LE(frame_start, frame_end);
546
3
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
0
            this->set_is_null();
548
0
            return;
549
0
        }
550
3
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
3
        this->set_value(columns, frame_start);
565
3
    }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
355
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
355
        if ((this->has_set_value()) &&
542
355
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
125
            return;
544
125
        }
545
355
        DCHECK_LE(frame_start, frame_end);
546
230
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
4
            this->set_is_null();
548
4
            return;
549
4
        }
550
226
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
226
        this->set_value(columns, frame_start);
565
226
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
845
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
845
        if ((this->has_set_value()) &&
542
845
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
463
            return;
544
463
        }
545
845
        DCHECK_LE(frame_start, frame_end);
546
382
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
16
            this->set_is_null();
548
16
            return;
549
16
        }
550
366
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
        if constexpr (arg_ignore_null) {
553
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
            if (is_column_nullable(*columns[0])) {
555
                const auto& arg_nullable =
556
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
                    frame_start++;
561
                }
562
            }
563
        }
564
366
        this->set_value(columns, frame_start);
565
366
    }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
4
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
4
        if ((this->has_set_value()) &&
542
4
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
0
            return;
544
0
        }
545
4
        DCHECK_LE(frame_start, frame_end);
546
4
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
0
            this->set_is_null();
548
0
            return;
549
0
        }
550
4
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
4
        if constexpr (arg_ignore_null) {
553
4
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
4
            if (is_column_nullable(*columns[0])) {
555
0
                const auto& arg_nullable =
556
0
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
0
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
0
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
0
                    frame_start++;
561
0
                }
562
0
            }
563
4
        }
564
4
        this->set_value(columns, frame_start);
565
4
    }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
538
49
                                int64_t frame_end, const IColumn** columns) {
539
        // case 1: (has_set_value() = true && arg_ignore_null = false)
540
        // case 2: (has_set_value() = true && arg_ignore_null = true && is_null() = false)
541
49
        if ((this->has_set_value()) &&
542
49
            (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
543
14
            return;
544
14
        }
545
49
        DCHECK_LE(frame_start, frame_end);
546
35
        if (frame_start >= partition_end || frame_end <= partition_start) {
547
6
            this->set_is_null();
548
6
            return;
549
6
        }
550
29
        frame_start = std::max<int64_t>(frame_start, partition_start);
551
552
29
        if constexpr (arg_ignore_null) {
553
29
            frame_end = std::min<int64_t>(frame_end, partition_end);
554
29
            if (is_column_nullable(*columns[0])) {
555
29
                const auto& arg_nullable =
556
29
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
557
29
                                *columns[0]);
558
                // the valid range is: [frame_start, frame_end)
559
38
                while (frame_start < frame_end - 1 && arg_nullable.is_null_at(frame_start)) {
560
9
                    frame_start++;
561
9
                }
562
29
            }
563
29
        }
564
29
        this->set_value(columns, frame_start);
565
29
    }
566
567
2.25k
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Line
Count
Source
567
6
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
567
929
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
567
1.24k
    static const char* name() { return "first_value"; }
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
Line
Count
Source
567
7
    static const char* name() { return "first_value"; }
_ZN5doris23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
567
61
    static const char* name() { return "first_value"; }
568
};
569
570
template <typename Data, bool arg_ignore_null = false>
571
struct WindowFunctionLastImpl : Data {
572
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
573
758
                                int64_t frame_end, const IColumn** columns) {
574
758
        DCHECK_LE(frame_start, frame_end);
575
758
        if ((frame_end <= partition_start) ||
576
758
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
228
            if ((this->has_set_value()) &&
578
228
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
228
            } else {
582
228
                this->set_is_null();
583
228
            }
584
228
            return;
585
228
        }
586
530
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
530
        if constexpr (arg_ignore_null) {
589
64
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
64
            if (is_column_nullable(*columns[0])) {
591
64
                const auto& arg_nullable =
592
64
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
64
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
105
                while (frame_start < frame_end) {
600
81
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
41
                        frame_end--;
602
41
                    } else {
603
40
                        this->set_value(columns, frame_end - 1);
604
40
                        return;
605
40
                    }
606
81
                }
607
24
                if (!this->has_set_value()) {
608
9
                    this->set_is_null();
609
9
                }
610
24
                return;
611
64
            }
612
64
        }
613
614
0
        this->set_value(columns, frame_end - 1);
615
530
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
207
                                int64_t frame_end, const IColumn** columns) {
574
207
        DCHECK_LE(frame_start, frame_end);
575
207
        if ((frame_end <= partition_start) ||
576
207
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
204
            if ((this->has_set_value()) &&
578
204
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
204
            } else {
582
204
                this->set_is_null();
583
204
            }
584
204
            return;
585
204
        }
586
3
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
        if constexpr (arg_ignore_null) {
589
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
            if (is_column_nullable(*columns[0])) {
591
                const auto& arg_nullable =
592
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
                while (frame_start < frame_end) {
600
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
                        frame_end--;
602
                    } else {
603
                        this->set_value(columns, frame_end - 1);
604
                        return;
605
                    }
606
                }
607
                if (!this->has_set_value()) {
608
                    this->set_is_null();
609
                }
610
                return;
611
            }
612
        }
613
614
3
        this->set_value(columns, frame_end - 1);
615
3
    }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
487
                                int64_t frame_end, const IColumn** columns) {
574
487
        DCHECK_LE(frame_start, frame_end);
575
487
        if ((frame_end <= partition_start) ||
576
487
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
24
            if ((this->has_set_value()) &&
578
24
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
24
            } else {
582
24
                this->set_is_null();
583
24
            }
584
24
            return;
585
24
        }
586
463
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
        if constexpr (arg_ignore_null) {
589
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
            if (is_column_nullable(*columns[0])) {
591
                const auto& arg_nullable =
592
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
                while (frame_start < frame_end) {
600
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
                        frame_end--;
602
                    } else {
603
                        this->set_value(columns, frame_end - 1);
604
                        return;
605
                    }
606
                }
607
                if (!this->has_set_value()) {
608
                    this->set_is_null();
609
                }
610
                return;
611
            }
612
        }
613
614
463
        this->set_value(columns, frame_end - 1);
615
463
    }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
573
64
                                int64_t frame_end, const IColumn** columns) {
574
64
        DCHECK_LE(frame_start, frame_end);
575
64
        if ((frame_end <= partition_start) ||
576
64
            (frame_start >= partition_end)) { //beyond or under partition, set null
577
0
            if ((this->has_set_value()) &&
578
0
                (!arg_ignore_null || (arg_ignore_null && !this->is_null()))) {
579
                // have set value, do nothing, because like rows unbouned preceding and M following
580
                // it's caculated as the cumulative mode, so it's could reuse the previous
581
0
            } else {
582
0
                this->set_is_null();
583
0
            }
584
0
            return;
585
0
        }
586
64
        frame_end = std::min<int64_t>(frame_end, partition_end);
587
588
64
        if constexpr (arg_ignore_null) {
589
64
            frame_start = std::max<int64_t>(frame_start, partition_start);
590
64
            if (is_column_nullable(*columns[0])) {
591
64
                const auto& arg_nullable =
592
64
                        assert_cast<const ColumnNullable&, TypeCheckOnRelease::DISABLE>(
593
64
                                *columns[0]);
594
                // wants find a not null value in [frame_start, frame_end)
595
                // iff has find: set_value and return directly
596
                // iff not find: the while loop is finished
597
                //     case 1: iff has_set_value, means the previous window have value, could reuse it, so return directly
598
                //     case 2: iff not has_set_value, means there is none value, set it's to NULL
599
105
                while (frame_start < frame_end) {
600
81
                    if (arg_nullable.is_null_at(frame_end - 1)) {
601
41
                        frame_end--;
602
41
                    } else {
603
40
                        this->set_value(columns, frame_end - 1);
604
40
                        return;
605
40
                    }
606
81
                }
607
24
                if (!this->has_set_value()) {
608
9
                    this->set_is_null();
609
9
                }
610
24
                return;
611
64
            }
612
64
        }
613
614
0
        this->set_value(columns, frame_end - 1);
615
64
    }
616
617
1.01k
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EE4nameEv
Line
Count
Source
617
219
    static const char* name() { return "last_value"; }
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
617
726
    static const char* name() { return "last_value"; }
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EE4nameEv
Unexecuted instantiation: _ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EE4nameEv
_ZN5doris22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EE4nameEv
Line
Count
Source
617
73
    static const char* name() { return "last_value"; }
618
};
619
620
template <typename Data, bool = false>
621
struct WindowFunctionNthValueImpl : Data {
622
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
623
238
                                int64_t frame_end, const IColumn** columns) {
624
238
        DCHECK_LE(frame_start, frame_end);
625
238
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
238
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
238
        this->_frame_start_pose =
628
238
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
238
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
238
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
238
                                 .get_data()[0];
632
238
        DCHECK_NE(offset, 0);
633
238
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
238
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
103
            this->set_is_null();
637
103
            return;
638
103
        }
639
135
        this->set_value(columns, row_position + this->_frame_start_pose);
640
135
    }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
623
3
                                int64_t frame_end, const IColumn** columns) {
624
3
        DCHECK_LE(frame_start, frame_end);
625
3
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
3
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
3
        this->_frame_start_pose =
628
3
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
3
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
3
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
3
                                 .get_data()[0];
632
3
        DCHECK_NE(offset, 0);
633
3
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
3
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
1
            this->set_is_null();
637
1
            return;
638
1
        }
639
2
        this->set_value(columns, row_position + this->_frame_start_pose);
640
2
    }
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE22add_range_single_placeEllllPPKNS_7IColumnE
Line
Count
Source
623
235
                                int64_t frame_end, const IColumn** columns) {
624
235
        DCHECK_LE(frame_start, frame_end);
625
235
        int64_t real_frame_start = std::max<int64_t>(frame_start, partition_start);
626
235
        int64_t real_frame_end = std::min<int64_t>(frame_end, partition_end);
627
235
        this->_frame_start_pose =
628
235
                this->_frame_total_rows ? this->_frame_start_pose : real_frame_start;
629
235
        this->_frame_total_rows += real_frame_end - real_frame_start;
630
235
        int64_t offset = assert_cast<const ColumnInt64&, TypeCheckOnRelease::DISABLE>(*columns[1])
631
235
                                 .get_data()[0];
632
235
        DCHECK_NE(offset, 0);
633
235
        int64_t row_position = offset > 0 ? offset - 1 : this->_frame_total_rows + offset;
634
235
        if (row_position < 0 || row_position >= this->_frame_total_rows) {
635
            // offset is beyond the frame, so set null
636
102
            this->set_is_null();
637
102
            return;
638
102
        }
639
133
        this->set_value(columns, row_position + this->_frame_start_pose);
640
133
    }
641
642
335
    static const char* name() { return "nth_value"; }
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EE4nameEv
Unexecuted instantiation: _ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EE4nameEv
_ZN5doris26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EE4nameEv
Line
Count
Source
642
335
    static const char* name() { return "nth_value"; }
643
};
644
645
template <typename Data>
646
class WindowFunctionData final
647
        : public IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>> {
648
public:
649
    WindowFunctionData(const DataTypes& argument_types_)
650
427
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
427
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
95
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
95
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
35
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
35
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
3
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
3
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
38
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
38
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
9
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
9
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
7
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
7
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
38
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
38
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
16
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
16
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
101
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
101
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
70
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
70
              _argument_type(argument_types_[0]) {}
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Unexecuted instantiation: _ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
1
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
1
              _argument_type(argument_types_[0]) {}
_ZN5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaISA_EE
Line
Count
Source
650
10
            : IAggregateFunctionDataHelper<Data, WindowFunctionData<Data>>(argument_types_),
651
10
              _argument_type(argument_types_[0]) {}
652
653
6.32k
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.42k
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
11
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
548
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
219
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
726
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
73
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
52
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
14
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
670
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
335
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
6
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
930
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
1.24k
    String get_name() const override { return Data::name(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE8get_nameB5cxx11Ev
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE8get_nameB5cxx11Ev
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
7
    String get_name() const override { return Data::name(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE8get_nameB5cxx11Ev
Line
Count
Source
653
61
    String get_name() const override { return Data::name(); }
654
655
6.68k
    DataTypePtr get_return_type() const override {
656
6.68k
        if constexpr (Data::result_nullable) {
657
5.11k
            return make_nullable(_argument_type);
658
5.11k
        } else {
659
1.57k
            return _argument_type;
660
1.57k
        }
661
6.68k
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.51k
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
1.51k
        } else {
659
1.51k
            return _argument_type;
660
1.51k
        }
661
1.51k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
12
    DataTypePtr get_return_type() const override {
656
12
        if constexpr (Data::result_nullable) {
657
12
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
12
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
584
    DataTypePtr get_return_type() const override {
656
584
        if constexpr (Data::result_nullable) {
657
584
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
584
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
222
    DataTypePtr get_return_type() const override {
656
222
        if constexpr (Data::result_nullable) {
657
222
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
222
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
790
    DataTypePtr get_return_type() const override {
656
790
        if constexpr (Data::result_nullable) {
657
790
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
790
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
88
    DataTypePtr get_return_type() const override {
656
88
        if constexpr (Data::result_nullable) {
657
88
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
88
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
52
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
52
        } else {
659
52
            return _argument_type;
660
52
        }
661
52
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
12
    DataTypePtr get_return_type() const override {
656
12
        if constexpr (Data::result_nullable) {
657
12
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
12
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
600
    DataTypePtr get_return_type() const override {
656
600
        if constexpr (Data::result_nullable) {
657
600
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
600
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
348
    DataTypePtr get_return_type() const override {
656
348
        if constexpr (Data::result_nullable) {
657
348
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
348
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
7
    DataTypePtr get_return_type() const override {
656
        if constexpr (Data::result_nullable) {
657
            return make_nullable(_argument_type);
658
7
        } else {
659
7
            return _argument_type;
660
7
        }
661
7
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.03k
    DataTypePtr get_return_type() const override {
656
1.03k
        if constexpr (Data::result_nullable) {
657
1.03k
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
1.03k
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE15get_return_typeEv
Line
Count
Source
655
1.31k
    DataTypePtr get_return_type() const override {
656
1.31k
        if constexpr (Data::result_nullable) {
657
1.31k
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
1.31k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE15get_return_typeEv
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE15get_return_typeEv
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
8
    DataTypePtr get_return_type() const override {
656
8
        if constexpr (Data::result_nullable) {
657
8
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
8
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE15get_return_typeEv
Line
Count
Source
655
101
    DataTypePtr get_return_type() const override {
656
101
        if constexpr (Data::result_nullable) {
657
101
            return make_nullable(_argument_type);
658
        } else {
659
            return _argument_type;
660
        }
661
101
    }
662
663
3.82k
    void check_input_columns_type(const IColumn** columns) const override {
664
3.82k
        IAggregateFunction::check_input_columns_type(columns);
665
3.82k
        const auto function_name = get_name();
666
3.82k
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
1.80k
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
1.80k
        }
669
3.82k
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
810
    void check_input_columns_type(const IColumn** columns) const override {
664
810
        IAggregateFunction::check_input_columns_type(columns);
665
810
        const auto function_name = get_name();
666
810
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
810
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
810
        }
669
810
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
4
    void check_input_columns_type(const IColumn** columns) const override {
664
4
        IAggregateFunction::check_input_columns_type(columns);
665
4
        const auto function_name = get_name();
666
4
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
4
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
4
        }
669
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
306
    void check_input_columns_type(const IColumn** columns) const override {
664
306
        IAggregateFunction::check_input_columns_type(columns);
665
306
        const auto function_name = get_name();
666
306
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
306
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
306
        }
669
306
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
207
    void check_input_columns_type(const IColumn** columns) const override {
664
207
        IAggregateFunction::check_input_columns_type(columns);
665
207
        const auto function_name = get_name();
666
207
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
207
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
487
    void check_input_columns_type(const IColumn** columns) const override {
664
487
        IAggregateFunction::check_input_columns_type(columns);
665
487
        const auto function_name = get_name();
666
487
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
487
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
64
    void check_input_columns_type(const IColumn** columns) const override {
664
64
        IAggregateFunction::check_input_columns_type(columns);
665
64
        const auto function_name = get_name();
666
64
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
64
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
42
    void check_input_columns_type(const IColumn** columns) const override {
664
42
        IAggregateFunction::check_input_columns_type(columns);
665
42
        const auto function_name = get_name();
666
42
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
42
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
42
        }
669
42
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
7
    void check_input_columns_type(const IColumn** columns) const override {
664
7
        IAggregateFunction::check_input_columns_type(columns);
665
7
        const auto function_name = get_name();
666
7
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
7
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
7
        }
669
7
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
403
    void check_input_columns_type(const IColumn** columns) const override {
664
403
        IAggregateFunction::check_input_columns_type(columns);
665
403
        const auto function_name = get_name();
666
403
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
403
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
403
        }
669
403
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
235
    void check_input_columns_type(const IColumn** columns) const override {
664
235
        IAggregateFunction::check_input_columns_type(columns);
665
235
        const auto function_name = get_name();
666
235
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
235
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
235
        }
669
235
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
5
    void check_input_columns_type(const IColumn** columns) const override {
664
5
        IAggregateFunction::check_input_columns_type(columns);
665
5
        const auto function_name = get_name();
666
5
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
355
    void check_input_columns_type(const IColumn** columns) const override {
664
355
        IAggregateFunction::check_input_columns_type(columns);
665
355
        const auto function_name = get_name();
666
355
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
355
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
845
    void check_input_columns_type(const IColumn** columns) const override {
664
845
        IAggregateFunction::check_input_columns_type(columns);
665
845
        const auto function_name = get_name();
666
845
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
845
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
4
    void check_input_columns_type(const IColumn** columns) const override {
664
4
        IAggregateFunction::check_input_columns_type(columns);
665
4
        const auto function_name = get_name();
666
4
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
4
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE24check_input_columns_typeEPPKNS_7IColumnE
Line
Count
Source
663
49
    void check_input_columns_type(const IColumn** columns) const override {
664
49
        IAggregateFunction::check_input_columns_type(columns);
665
49
        const auto function_name = get_name();
666
49
        if (function_name == "lead" || function_name == "lag" || function_name == "nth_value") {
667
0
            this->template check_argument_column_type<ColumnInt64>(columns[1]);
668
0
        }
669
49
    }
670
671
    void add_range_single_place(int64_t partition_start, int64_t partition_end, int64_t frame_start,
672
                                int64_t frame_end, AggregateDataPtr place, const IColumn** columns,
673
3.82k
                                Arena&, UInt8*, UInt8*) const override {
674
3.82k
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
3.82k
                                                 frame_end, columns);
676
3.82k
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
810
                                Arena&, UInt8*, UInt8*) const override {
674
810
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
810
                                                 frame_end, columns);
676
810
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
4
                                Arena&, UInt8*, UInt8*) const override {
674
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
4
                                                 frame_end, columns);
676
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
306
                                Arena&, UInt8*, UInt8*) const override {
674
306
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
306
                                                 frame_end, columns);
676
306
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
207
                                Arena&, UInt8*, UInt8*) const override {
674
207
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
207
                                                 frame_end, columns);
676
207
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
487
                                Arena&, UInt8*, UInt8*) const override {
674
487
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
487
                                                 frame_end, columns);
676
487
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
64
                                Arena&, UInt8*, UInt8*) const override {
674
64
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
64
                                                 frame_end, columns);
676
64
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
42
                                Arena&, UInt8*, UInt8*) const override {
674
42
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
42
                                                 frame_end, columns);
676
42
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
7
                                Arena&, UInt8*, UInt8*) const override {
674
7
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
7
                                                 frame_end, columns);
676
7
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
403
                                Arena&, UInt8*, UInt8*) const override {
674
403
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
403
                                                 frame_end, columns);
676
403
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
3
                                Arena&, UInt8*, UInt8*) const override {
674
3
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
3
                                                 frame_end, columns);
676
3
    }
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
235
                                Arena&, UInt8*, UInt8*) const override {
674
235
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
235
                                                 frame_end, columns);
676
235
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
5
                                Arena&, UInt8*, UInt8*) const override {
674
5
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
5
                                                 frame_end, columns);
676
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
355
                                Arena&, UInt8*, UInt8*) const override {
674
355
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
355
                                                 frame_end, columns);
676
355
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
845
                                Arena&, UInt8*, UInt8*) const override {
674
845
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
845
                                                 frame_end, columns);
676
845
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
4
                                Arena&, UInt8*, UInt8*) const override {
674
4
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
4
                                                 frame_end, columns);
676
4
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE22add_range_single_placeEllllPcPPKNS_7IColumnERNS_5ArenaEPhSD_
Line
Count
Source
673
49
                                Arena&, UInt8*, UInt8*) const override {
674
49
        this->data(place).add_range_single_place(partition_start, partition_end, frame_start,
675
49
                                                 frame_end, columns);
676
49
    }
677
678
1.59k
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
151
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
39
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
191
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
236
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5resetEPc
Line
Count
Source
678
34
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
7
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
108
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
182
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
3
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE5resetEPc
Line
Count
Source
678
225
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE5resetEPc
Line
Count
Source
678
382
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE5resetEPc
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE5resetEPc
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE5resetEPc
Line
Count
Source
678
4
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE5resetEPc
Line
Count
Source
678
34
    void reset(AggregateDataPtr place) const override { this->data(place).reset(); }
679
680
4.54k
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
4.54k
        this->data(place).insert_result_into(to);
682
4.54k
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
810
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
810
        this->data(place).insert_result_into(to);
682
810
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
4
        this->data(place).insert_result_into(to);
682
4
    }
_ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
306
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
306
        this->data(place).insert_result_into(to);
682
306
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
207
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
207
        this->data(place).insert_result_into(to);
682
207
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
646
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
646
        this->data(place).insert_result_into(to);
682
646
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb0ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLastImplINS_13FirstLastDataILb1ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
83
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
83
        this->data(place).insert_result_into(to);
682
83
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
35
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
35
        this->data(place).insert_result_into(to);
682
35
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
4
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
4
        this->data(place).insert_result_into(to);
682
4
    }
_ZNK5doris18WindowFunctionDataINS_22WindowFunctionLeadImplINS_11LeadLagDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
295
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
295
        this->data(place).insert_result_into(to);
682
295
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
3
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
3
        this->data(place).insert_result_into(to);
682
3
    }
_ZNK5doris18WindowFunctionDataINS_26WindowFunctionNthValueImplINS_12NthValueDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
233
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
233
        this->data(place).insert_result_into(to);
682
233
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
5
        this->data(place).insert_result_into(to);
682
5
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
691
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
691
        this->data(place).insert_result_into(to);
682
691
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb0EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
1.10k
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
1.10k
        this->data(place).insert_result_into(to);
682
1.10k
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb0ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb0EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
5
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
5
        this->data(place).insert_result_into(to);
682
5
    }
_ZNK5doris18WindowFunctionDataINS_23WindowFunctionFirstImplINS_13FirstLastDataILb1ELb1EEELb1EEEE18insert_result_intoEPKcRNS_7IColumnE
Line
Count
Source
680
114
    void insert_result_into(ConstAggregateDataPtr place, IColumn& to) const override {
681
114
        this->data(place).insert_result_into(to);
682
114
    }
683
684
    void add(AggregateDataPtr place, const IColumn** columns, ssize_t row_num,
685
0
             Arena&) const override {
686
0
        throw doris::Exception(Status::FatalError("WindowFunctionLeadLagData do not support add"));
687
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_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_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
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_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
688
0
    void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs, Arena&) const override {
689
0
        throw doris::Exception(
690
0
                Status::FatalError("WindowFunctionLeadLagData do not support merge"));
691
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE5mergeEPcPKcRNS_5ArenaE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE5mergeEPcPKcRNS_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
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_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
692
0
    void serialize(ConstAggregateDataPtr place, BufferWritable& buf) const override {
693
0
        throw doris::Exception(
694
0
                Status::FatalError("WindowFunctionLeadLagData do not support serialize"));
695
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb0ELb1EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb0EEELb0EEEE9serializeEPKcRNS_14BufferWritableE
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_21WindowFunctionLagImplINS_11LeadLagDataILb1ELb1EEELb0EEEE9serializeEPKcRNS_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
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_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
696
0
    void deserialize(AggregateDataPtr place, BufferReadable& buf, Arena&) const override {
697
0
        throw doris::Exception(
698
0
                Status::FatalError("WindowFunctionLeadLagData do not support deserialize"));
699
0
    }
Unexecuted instantiation: _ZNK5doris18WindowFunctionDataINS_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_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
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_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
700
701
private:
702
    DataTypePtr _argument_type;
703
};
704
705
} // namespace doris