Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcclp committed Jul 4, 2024
1 parent a329ec4 commit 6d812d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ NtileParser::parseFunctionArguments(const CommonFunctionInfo & func_info, const

const auto & arg0 = func_info.arguments[0].value();
auto [data_type, field] = parseLiteral(arg0.literal());
if (data_type->getTypeId() != TypeIndex::Int32)
if (!(WhichDataType(data_type).isInt32()))
throw Exception(ErrorCodes::BAD_ARGUMENTS, "ntile's argument must be i32");
Int32 field_index = static_cast<Int32>(field.get<Int32>());
// For CH, the data type of the args[0] must be the UInt32
Expand Down

0 comments on commit 6d812d5

Please sign in to comment.