This is an automated email from the ASF dual-hosted git repository.

SteNicholas pushed a commit to branch release-0.4
in repository https://gitbox.apache.org/repos/asf/paimon-cpp.git


The following commit(s) were added to refs/heads/release-0.4 by this push:
     new e0e3e1e9 fix(test): avoid GCC 13.3 ICE in floating-point comparator 
(#530) (#532)
e0e3e1e9 is described below

commit e0e3e1e90cb8ede5a6ef8fe01a05b57293529e17
Author: Yonghao Fang <[email protected]>
AuthorDate: Fri Nov 6 21:57:37 2026 +0800

    fix(test): avoid GCC 13.3 ICE in floating-point comparator (#530) (#532)
---
 src/paimon/common/utils/fields_comparator_test.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/paimon/common/utils/fields_comparator_test.cpp 
b/src/paimon/common/utils/fields_comparator_test.cpp
index 111de404..4373c1a7 100644
--- a/src/paimon/common/utils/fields_comparator_test.cpp
+++ b/src/paimon/common/utils/fields_comparator_test.cpp
@@ -116,7 +116,9 @@ class FieldsComparatorTest : public ::testing::Test {
             }
         }
 
-        BinaryRow negative_nan_row = BinaryRowGenerator::GenerateRow({-nan}, 
pool.get());
+        // Work around a GCC 13.3 ICE when a negated constant initializes a 
variant.
+        const T negative_nan = -nan;
+        BinaryRow negative_nan_row = 
BinaryRowGenerator::GenerateRow({negative_nan}, pool.get());
         ASSERT_EQ(0, ascending_comparator->CompareTo(rows.back(), 
negative_nan_row));
         ASSERT_EQ(0, ascending_comparator->CompareTo(negative_nan_row, 
rows.back()));
     }

Reply via email to