From af6e7b521fbf51a535baa1bbb1ee88d78c297c87 Mon Sep 17 00:00:00 2001 From: oh2024 Date: Tue, 4 Jun 2024 11:11:14 +0000 Subject: [PATCH] fix: remove unneccessary casting --- hybridse/src/udf/default_defs/feature_zero_def.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hybridse/src/udf/default_defs/feature_zero_def.cc b/hybridse/src/udf/default_defs/feature_zero_def.cc index 4fd19064ba6..06c86feec39 100644 --- a/hybridse/src/udf/default_defs/feature_zero_def.cc +++ b/hybridse/src/udf/default_defs/feature_zero_def.cc @@ -677,7 +677,7 @@ void json_array_sort(::openmldb::base::StringRef *json_array, if (ec_order != std::errc()) { return; } - container.emplace_back(static_cast(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) {