Coverage Report

Created: 2026-08-14 14:02

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/information_schema/schema_routine_scanner.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 "information_schema/schema_routine_scanner.h"
19
20
#include <vector>
21
22
#include "common/status.h"
23
#include "core/block/block.h"
24
#include "core/string_ref.h"
25
#include "runtime/runtime_state.h"
26
27
namespace doris {
28
class RuntimeState;
29
class Block;
30
31
std::vector<SchemaScanner::ColumnDesc> SchemaRoutinesScanner::_s_tbls_columns = {
32
        {"SPECIFIC_NAME", TYPE_VARCHAR, sizeof(StringRef), true},
33
        {"ROUTINE_CATALOG", TYPE_VARCHAR, sizeof(StringRef), true},
34
        {"ROUTINE_SCHEMA", TYPE_VARCHAR, sizeof(StringRef), true},
35
        {"ROUTINE_NAME", TYPE_VARCHAR, sizeof(StringRef), true},
36
        {"ROUTINE_TYPE", TYPE_VARCHAR, sizeof(StringRef), true},
37
        {"DTD_IDENTIFIER", TYPE_VARCHAR, sizeof(StringRef), true},
38
        {"ROUTINE_BODY", TYPE_VARCHAR, sizeof(StringRef), true},
39
        {"ROUTINE_DEFINITION", TYPE_VARCHAR, sizeof(StringRef), true},
40
        {"EXTERNAL_NAME", TYPE_VARCHAR, sizeof(StringRef), true},
41
        {"EXTERNAL_LANGUAGE", TYPE_VARCHAR, sizeof(StringRef), true},
42
        {"PARAMETER_STYLE", TYPE_VARCHAR, sizeof(StringRef), true},
43
        {"IS_DETERMINISTIC", TYPE_VARCHAR, sizeof(StringRef), true},
44
        {"SQL_DATA_ACCESS", TYPE_VARCHAR, sizeof(StringRef), true},
45
        {"SQL_PATH", TYPE_VARCHAR, sizeof(StringRef), true},
46
        {"SECURITY_TYPE", TYPE_VARCHAR, sizeof(StringRef), true},
47
        {"CREATED", TYPE_DATETIME, sizeof(int64_t), true},
48
        {"LAST_ALTERED", TYPE_DATETIME, sizeof(int64_t), true},
49
        {"SQL_MODE", TYPE_VARCHAR, sizeof(StringRef), true},
50
        {"ROUTINE_COMMENT", TYPE_VARCHAR, sizeof(StringRef), true},
51
        {"DEFINER", TYPE_VARCHAR, sizeof(StringRef), true},
52
        {"CHARACTER_SET_CLIENT", TYPE_VARCHAR, sizeof(StringRef), true},
53
        {"COLLATION_CONNECTION", TYPE_VARCHAR, sizeof(StringRef), true},
54
        {"DATABASE_COLLATION", TYPE_VARCHAR, sizeof(StringRef), true},
55
};
56
57
SchemaRoutinesScanner::SchemaRoutinesScanner()
58
0
        : SchemaScanner(_s_tbls_columns, TSchemaTableType::SCH_PROCEDURES) {}
59
60
0
SchemaRoutinesScanner::~SchemaRoutinesScanner() {}
61
62
0
Status SchemaRoutinesScanner::start(RuntimeState* state) {
63
0
    return Status::OK();
64
0
}
65
66
0
Status SchemaRoutinesScanner::get_next_block_internal(Block* block, bool* eos) {
67
0
    *eos = true;
68
0
    return Status::OK();
69
0
}
70
71
} // namespace doris