|
24 | 24 | #include <cstddef> // for size_t |
25 | 25 | #include <cstdint> // for uint32_t |
26 | 26 | #include <memory> // for unique_ptr |
27 | | -#include <mutex> |
28 | 27 | #include <string> |
29 | 28 | #include <utility> |
30 | 29 | #include <vector> |
31 | 30 |
|
32 | 31 | #include "common/config.h" |
33 | | -#include "common/exception.h" |
34 | 32 | #include "common/logging.h" |
35 | 33 | #include "common/status.h" // for Status |
36 | 34 | #include "io/fs/file_reader_writer_fwd.h" |
37 | | -#include "io/fs/file_system.h" |
38 | 35 | #include "io/io_common.h" |
39 | 36 | #include "olap/olap_common.h" |
40 | 37 | #include "olap/rowset/segment_v2/common.h" |
|
50 | 47 | #include "util/once.h" |
51 | 48 | #include "vec/columns/column.h" |
52 | 49 | #include "vec/columns/column_array.h" // ColumnArray |
53 | | -#include "vec/columns/subcolumn_tree.h" |
54 | 50 | #include "vec/data_types/data_type.h" |
55 | | -#include "vec/json/path_in_data.h" |
56 | 51 |
|
57 | 52 | namespace doris { |
58 | 53 | #include "common/compile_check_begin.h" |
@@ -662,7 +657,7 @@ class RowIdColumnIterator : public ColumnIterator { |
662 | 657 |
|
663 | 658 | Status next_batch(size_t* n, vectorized::MutableColumnPtr& dst, bool* has_null) override { |
664 | 659 | for (size_t i = 0; i < *n; ++i) { |
665 | | - rowid_t row_id = cast_set<uint32_t>(_current_rowid + i); |
| 660 | + const auto row_id = cast_set<uint32_t>(_current_rowid + i); |
666 | 661 | GlobalRowLoacation location(_tablet_id, _rowset_id, _segment_id, row_id); |
667 | 662 | dst->insert_data(reinterpret_cast<const char*>(&location), sizeof(GlobalRowLoacation)); |
668 | 663 | } |
@@ -722,14 +717,12 @@ class RowIdColumnIteratorV2 : public ColumnIterator { |
722 | 717 | // This iterator is used to read default value column |
723 | 718 | class DefaultValueColumnIterator : public ColumnIterator { |
724 | 719 | public: |
725 | | - DefaultValueColumnIterator(bool has_default_value, const std::string& default_value, |
726 | | - bool is_nullable, TypeInfoPtr type_info, int precision, int scale) |
| 720 | + DefaultValueColumnIterator(bool has_default_value, std::string default_value, bool is_nullable, |
| 721 | + TypeInfoPtr type_info, int precision, int scale) |
727 | 722 | : _has_default_value(has_default_value), |
728 | | - _default_value(default_value), |
| 723 | + _default_value(std::move(default_value)), |
729 | 724 | _is_nullable(is_nullable), |
730 | 725 | _type_info(std::move(type_info)), |
731 | | - _is_default_value_null(false), |
732 | | - _type_size(0), |
733 | 726 | _precision(precision), |
734 | 727 | _scale(scale) {} |
735 | 728 |
|
@@ -766,8 +759,8 @@ class DefaultValueColumnIterator : public ColumnIterator { |
766 | 759 | std::string _default_value; |
767 | 760 | bool _is_nullable; |
768 | 761 | TypeInfoPtr _type_info; |
769 | | - bool _is_default_value_null; |
770 | | - size_t _type_size; |
| 762 | + bool _is_default_value_null {false}; |
| 763 | + size_t _type_size {0}; |
771 | 764 | int _precision; |
772 | 765 | int _scale; |
773 | 766 | std::vector<char> _mem_value; |
|
0 commit comments