be/src/format_v2/table/hive_reader.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 | | |
18 | | #pragma once |
19 | | |
20 | | #include "common/status.h" |
21 | | #include "format_v2/table_reader.h" |
22 | | |
23 | | namespace doris::format::hive { |
24 | | // now hive self only support mixed with orc/parquet files in table and different partitions. |
25 | | // But if mixed with orc/parquet files in table and same partition, will failed when read. |
26 | | // now fe will plan table format for all files dirctly, and BE could not handle mixed files also. |
27 | | class HiveReader final : public format::TableReader { |
28 | | public: |
29 | | ENABLE_FACTORY_CREATOR(HiveReader); |
30 | 8 | ~HiveReader() final = default; |
31 | | |
32 | | Status prepare_split(const format::SplitReadOptions& options) override; |
33 | | format::TableColumnMappingMode mapping_mode() const override; |
34 | | Status annotate_projected_column(const TFileScanSlotInfo& slot_info, |
35 | | format::ProjectedColumnBuildContext* context, |
36 | | format::ColumnDefinition* column) const override; |
37 | | Status validate_projected_columns( |
38 | | const format::ProjectedColumnBuildContext& context) const override; |
39 | | }; |
40 | | |
41 | | } // namespace doris::format::hive |