Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 authored and baibaichen committed Nov 16, 2023
1 parent d329ff8 commit af0e256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/Storages/IO/NativeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ size_t NativeWriter::write(const DB::Block & block)
auto original_type = header.safeGetByPosition(i).type;
/// Type
String type_name = original_type->getName();
bool is_agg_opt = WhichDataType(original_type).isAggregateFunction();
bool is_agg_opt = WhichDataType(original_type).isAggregateFunction()
&& header.safeGetByPosition(i).column->getDataType() != block.safeGetByPosition(i).column->getDataType();
if (is_agg_opt)
{
Expand Down

0 comments on commit af0e256

Please sign in to comment.