This is an automated email from the ASF dual-hosted git repository.
SteNicholas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new df6f7c07 fix(test): avoid GCC 13.3 ICE in floating-point comparator
(#530)
df6f7c07 is described below
commit df6f7c0777c7283052eac2671e1c8e6a96b3fac8
Author: Yonghao Fang <[email protected]>
AuthorDate: Fri Nov 6 20:19:03 2026 +0800
fix(test): avoid GCC 13.3 ICE in floating-point comparator (#530)
---
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()));
}