Skip to content

Commit

Permalink
fix: remove unneccessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2024 committed Jun 4, 2024
1 parent 2d89b55 commit af6e7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hybridse/src/udf/default_defs/feature_zero_def.cc
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ void json_array_sort(::openmldb::base::StringRef *json_array,
if (ec_order != std::errc()) {
return;
}
container.emplace_back(static_cast<int>(order_int), std::string(column_val));
container.emplace_back(order_int, column_val);
}

std::sort(container.begin(), container.end(), [desc](const auto& a, const auto& b) {
Expand Down

0 comments on commit af6e7b5

Please sign in to comment.