Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
exmy committed Mar 14, 2023
1 parent 4fa5e91 commit 1b04f37
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions utils/local-engine/Parser/SerializedPlanParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1617,15 +1617,8 @@ void SerializedPlanParser::parseFunctionArguments(
{
// add cast: cast(start_pos as UInt32)
const auto * start_pos_node = parseFunctionArgument(actions_dag, required_columns, function_name, args[2]);
if (start_pos_node->result_type->isNullable())
{
start_pos_node = add_column(std::make_shared<DB::DataTypeUInt32>(), 0);
}
else
{
DB::DataTypeUInt32 target_type;
start_pos_node = ActionsDAGUtil::convertNodeType(actions_dag, start_pos_node, target_type.getName());
}
DB::DataTypeNullable target_type(std::make_shared<DB::DataTypeUInt32>());
start_pos_node = ActionsDAGUtil::convertNodeType(actions_dag, start_pos_node, target_type.getName());
parsed_args.emplace_back(start_pos_node);
}
}
Expand Down

0 comments on commit 1b04f37

Please sign in to comment.