You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "github-actions[bot] (via GitHub)" <gi...@apache.org> on 2023/03/02 16:58:45 UTC
[GitHub] [doris] github-actions[bot] commented on a diff in pull request #17371: [Enhencement](schema_scanner) Optimize the performance of reading information schema tables
github-actions[bot] commented on code in PR #17371:
URL: https://github.com/apache/doris/pull/17371#discussion_r1123431576
##########
be/src/exec/schema_scanner.cpp:
##########
@@ -139,155 +142,167 @@ SchemaScanner* SchemaScanner::create(TSchemaTableType::type type) {
}
}
-Status SchemaScanner::fill_dest_column(vectorized::Block* block, void* data,
- const ColumnDesc& col_desc) {
- if (!block->has(col_desc.name)) {
- return Status::OK();
- }
- vectorized::MutableColumnPtr column_ptr =
- std::move(*block->get_by_name(col_desc.name).column).assume_mutable();
+Status SchemaScanner::fill_dest_column_for_range(vectorized::Block* block, size_t pos,
+ const std::vector<void*>& datas) {
+ const ColumnDesc& col_desc = _columns[pos];
+ vectorized::MutableColumnPtr column_ptr;
+ column_ptr = std::move(*block->get_by_position(pos).column).assume_mutable();
Review Comment:
warning: std::move of the const expression has no effect; remove std::move() [performance-move-const-arg]
```suggestion
column_ptr = *block->get_by_position(pos).column.assume_mutable();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org