Skip to content

Commit

Permalink
Add some comments.
Browse files Browse the repository at this point in the history
Signed-off-by: RinChanNOWWW <rinchannow@bupt.edu.cn>
  • Loading branch information
RinChanNOWWW committed Jul 25, 2022
1 parent b849612 commit 602639b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbms/src/Flash/Coprocessor/DAGExpressionAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ void DAGExpressionAnalyzer::fillArgumentDetailForAggFuncBitwise(
const Block & sample_block = actions->getSampleBlock();
String name = getActions(arg, actions);
DataTypePtr orig_type = sample_block.getByName(name).type;
// Bitwise operations can only be applied to integer types.
// So we need to cast the argument to UInt64.
if (!removeNullable(orig_type)->equals(*uint64_type))
{
if (orig_type->isNullable())
Expand Down

0 comments on commit 602639b

Please sign in to comment.