Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.9k
[Fix](hive-writer) Fix partition column orders issue when the partition fields inserted into the target table are inconsistent with the field order of the query source table and the schema field order of the query source table.#35543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -20,6 +20,7 @@ | ||
| #include <gen_cpp/DataSinks_types.h> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: 'gen_cpp/DataSinks_types.h' file not found [clang-diagnostic-error] #include<gen_cpp/DataSinks_types.h>
^ | ||
| #include "util/runtime_profile.h" | ||
| #include "vec/columns/column.h" | ||
| #include "vec/exprs/vexpr_fwd.h" | ||
| #include "vec/sink/writer/async_result_writer.h" | ||
| @@ -62,6 +63,9 @@ class VHiveTableWriter final : public AsyncResultWriter { | ||
| std::string _compute_file_name(); | ||
| Status _filter_block(doris::vectorized::Block& block, const vectorized::IColumn::Filter* filter, | ||
| doris::vectorized::Block* output_block); | ||
| // Currently it is a copy, maybe it is better to use move semantics to eliminate it. | ||
| TDataSink _t_sink; | ||
| RuntimeState* _state = nullptr; | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'write' has cognitive complexity of 83 (threshold 50) [readability-function-cognitive-complexity]
Status VHiveTableWriter::write(vectorized::Block& block) { ^Additional context
be/src/vec/sink/writer/vhive_table_writer.cpp:86: +1, including nesting penalty of 0, nesting level increased to 1
be/src/vec/sink/writer/vhive_table_writer.cpp:90: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(vectorized::VExprContext::get_output_block_after_execute_exprs( ^be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:90: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(vectorized::VExprContext::get_output_block_after_execute_exprs( ^be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:98: +1, including nesting penalty of 0, nesting level increased to 1
if (_partition_columns_input_index.empty()) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:103: +2, including nesting penalty of 1, nesting level increased to 2
if (writer_iter == _partitions_to_writers.end()) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:106: +3, including nesting penalty of 2, nesting level increased to 3
} catch (doris::Exception& e) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:110: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:110: +4, including nesting penalty of 3, nesting level increased to 4
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:111: +1, nesting level increased to 2
} else { ^be/src/vec/sink/writer/vhive_table_writer.cpp:112: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/sink/writer/vhive_table_writer.cpp:123: +4, including nesting penalty of 3, nesting level increased to 4
} catch (doris::Exception& e) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:127: +4, including nesting penalty of 3, nesting level increased to 4
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:127: +5, including nesting penalty of 4, nesting level increased to 5
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:128: +1, nesting level increased to 3
} else { ^be/src/vec/sink/writer/vhive_table_writer.cpp:135: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:135: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:141: +1, including nesting penalty of 0, nesting level increased to 1
be/src/vec/sink/writer/vhive_table_writer.cpp:145: +2, including nesting penalty of 1, nesting level increased to 2
} catch (doris::Exception& e) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:152: nesting level increased to 2
be/src/vec/sink/writer/vhive_table_writer.cpp:158: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:158: +4, including nesting penalty of 3, nesting level increased to 4
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:164: +3, including nesting penalty of 2, nesting level increased to 3
} catch (doris::Exception& e) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:171: +2, including nesting penalty of 1, nesting level increased to 2
if (writer_iter == _partitions_to_writers.end()) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:173: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/sink/writer/vhive_table_writer.cpp:179: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:179: +4, including nesting penalty of 3, nesting level increased to 4
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:180: +1, nesting level increased to 2
} else { ^be/src/vec/sink/writer/vhive_table_writer.cpp:182: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/sink/writer/vhive_table_writer.cpp:191: +4, including nesting penalty of 3, nesting level increased to 4
RETURN_IF_ERROR(create_and_open_writer(partition_name, i, &file_name, ^be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/vec/sink/writer/vhive_table_writer.cpp:191: +5, including nesting penalty of 4, nesting level increased to 5
RETURN_IF_ERROR(create_and_open_writer(partition_name, i, &file_name, ^be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/vec/sink/writer/vhive_table_writer.cpp:193: +1, nesting level increased to 3
} else { ^be/src/vec/sink/writer/vhive_table_writer.cpp:197: +3, including nesting penalty of 2, nesting level increased to 3
if (writer_pos_iter == writer_positions.end()) { ^be/src/vec/sink/writer/vhive_table_writer.cpp:201: +1, nesting level increased to 3
} else { ^