This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3dfeee3946 [fix](typesystem) fix wrong return type argument cause type
check fail (#21082)
3dfeee3946 is described below
commit 3dfeee39466acc826f911c7d9a7ae493b5a81c03
Author: TsukiokaKogane <[email protected]>
AuthorDate: Thu Jun 22 00:04:46 2023 +0800
[fix](typesystem) fix wrong return type argument cause type check fail
(#21082)
---
be/src/vec/exec/scan/vfile_scanner.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/be/src/vec/exec/scan/vfile_scanner.cpp
b/be/src/vec/exec/scan/vfile_scanner.cpp
index a5ebf34645..43c6147dad 100644
--- a/be/src/vec/exec/scan/vfile_scanner.cpp
+++ b/be/src/vec/exec/scan/vfile_scanner.cpp
@@ -348,13 +348,12 @@ Status VFileScanner::_cast_to_input_block(Block* block) {
continue;
}
auto& arg = _src_block_ptr->get_by_name(slot_desc->col_name());
- // remove nullable here, let the get_function decide whether nullable
auto return_type = slot_desc->get_data_type_ptr();
+ // remove nullable here, let the get_function decide whether nullable
+ auto data_type =
vectorized::DataTypeFactory::instance().create_data_type(
+ remove_nullable(return_type)->get_type_id());
ColumnsWithTypeAndName arguments {
- arg,
- {DataTypeString().create_column_const(
- arg.column->size(),
remove_nullable(return_type)->get_family_name()),
- std::make_shared<DataTypeString>(), ""}};
+ arg, {data_type->create_column(), data_type,
slot_desc->col_name()}};
auto func_cast =
SimpleFunctionFactory::instance().get_function("CAST",
arguments, return_type);
idx = _src_block_name_to_idx[slot_desc->col_name()];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]