Coverage Report

Created: 2025-09-15 22:11

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/doris/be/src/exec/olap_common.cpp
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#include "exec/olap_common.h"
19
20
#include <utility>
21
#include <vector>
22
23
#include "exec/olap_utils.h"
24
25
namespace doris {
26
template <>
27
const typename ColumnValueRange<TYPE_FLOAT>::CppType ColumnValueRange<TYPE_FLOAT>::TYPE_MIN =
28
        -std::numeric_limits<float>::infinity();
29
template <>
30
const typename ColumnValueRange<TYPE_FLOAT>::CppType ColumnValueRange<TYPE_FLOAT>::TYPE_MAX =
31
        std::numeric_limits<float>::quiet_NaN();
32
template <>
33
const typename ColumnValueRange<TYPE_DOUBLE>::CppType ColumnValueRange<TYPE_DOUBLE>::TYPE_MIN =
34
        -std::numeric_limits<double>::infinity();
35
template <>
36
const typename ColumnValueRange<TYPE_DOUBLE>::CppType ColumnValueRange<TYPE_DOUBLE>::TYPE_MAX =
37
        std::numeric_limits<double>::quiet_NaN();
38
39
0
Status OlapScanKeys::get_key_range(std::vector<std::unique_ptr<OlapScanRange>>* key_range) {
40
0
    key_range->clear();
41
42
0
    for (int i = 0; i < _begin_scan_keys.size(); ++i) {
43
0
        std::unique_ptr<OlapScanRange> range(new OlapScanRange());
44
0
        range->begin_scan_range = _begin_scan_keys[i];
45
0
        range->end_scan_range = _end_scan_keys[i];
46
0
        range->begin_include = _begin_include;
47
0
        range->end_include = _end_include;
48
0
        key_range->emplace_back(std::move(range));
49
0
    }
50
51
0
    return Status::OK();
52
0
}
53
54
} // namespace doris
55
56
/* vim: set expandtab ts=4 sw=4 sts=4 tw=100: */