yiguolei commented on code in PR #55633:
URL: https://github.com/apache/doris/pull/55633#discussion_r2318680054


##########
be/src/vec/columns/column_vector.cpp:
##########
@@ -440,6 +440,20 @@ void ColumnVector<T>::replace_column_null_data(const 
uint8_t* __restrict null_ma
     }
 }
 
+template <PrimitiveType T>
+void ColumnVector<T>::replace_float_special_values() {
+    if constexpr (is_float_or_double(T)) {
+        auto s = size();
+        for (size_t i = 0; i < s; ++i) {
+            if (data[i] == -0.0) {
+                data[i] = 0.0;
+            } else if (is_nan(data[i])) {

Review Comment:
   great



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to