File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 54
54
#include " pipeline/dependency.h"
55
55
#include " runtime/define_primitive_type.h"
56
56
#include " runtime/fragment_mgr.h"
57
+ #include " runtime/types.h"
57
58
#include " util/string_util.h"
58
59
#include " util/types.h"
59
60
#include " vec/columns/column.h"
67
68
#include " vec/core/column_with_type_and_name.h"
68
69
#include " vec/core/types.h"
69
70
#include " vec/data_types/data_type.h"
71
+ #include " vec/data_types/data_type_factory.hpp"
70
72
71
73
namespace doris {
72
74
class ObjectPool ;
@@ -191,6 +193,16 @@ std::unique_ptr<SchemaScanner> SchemaScanner::create(TSchemaTableType::type type
191
193
}
192
194
}
193
195
196
+ void SchemaScanner::init_block (vectorized::Block* src_block) {
197
+ const std::vector<SchemaScanner::ColumnDesc>& columns_desc (get_column_desc ());
198
+ for (int i = 0 ; i < columns_desc.size (); ++i) {
199
+ TypeDescriptor descriptor (columns_desc[i].type );
200
+ auto data_type = vectorized::DataTypeFactory::instance ().create_data_type (descriptor, true );
201
+ src_block->insert (vectorized::ColumnWithTypeAndName (data_type->create_column (), data_type,
202
+ columns_desc[i].name ));
203
+ }
204
+ }
205
+
194
206
Status SchemaScanner::fill_dest_column_for_range (vectorized::Block* block, size_t pos,
195
207
const std::vector<void *>& datas) {
196
208
const ColumnDesc& col_desc = _columns[pos];
Original file line number Diff line number Diff line change @@ -112,16 +112,7 @@ class SchemaScanner {
112
112
_finish_dependency = fin_dep;
113
113
}
114
114
115
- void init_block (vectorized::Block* src_block) {
116
- const std::vector<SchemaScanner::ColumnDesc>& columns_desc (get_column_desc ());
117
- for (int i = 0 ; i < columns_desc.size (); ++i) {
118
- TypeDescriptor descriptor (columns_desc[i].type );
119
- auto data_type =
120
- vectorized::DataTypeFactory::instance ().create_data_type (descriptor, true );
121
- src_block->insert (vectorized::ColumnWithTypeAndName (data_type->create_column (),
122
- data_type, columns_desc[i].name ));
123
- }
124
- }
115
+ void init_block (vectorized::Block* src_block);
125
116
126
117
protected:
127
118
// For async scanner (which has blocking operation (e.g. RPC), this function should return true
You can’t perform that action at this time.
0 commit comments