This is an automated email from the ASF dual-hosted git repository.
KKcorps pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 94fc1432751 Normalize signed zero in transform test fixtures (#19803)
94fc1432751 is described below
commit 94fc143275154c9c60a70e5a24f2000c1e78f50d
Author: Xiang Fu <[email protected]>
AuthorDate: Fri Oct 9 03:54:43 2026 -0700
Normalize signed zero in transform test fixtures (#19803)
Generated negative zero differs from the value normalized during ingestion.
Use the same normalized expected values so Groovy string comparisons are
stable.
---
.../core/operator/transform/function/BaseTransformFunctionTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunctionTest.java
b/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunctionTest.java
index fda7bc4c8bb..25435375f1c 100644
---
a/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunctionTest.java
+++
b/pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunctionTest.java
@@ -168,8 +168,9 @@ public abstract class BaseTransformFunctionTest {
for (int i = 0; i < NUM_ROWS; i++) {
_intSVValues[i] = RANDOM.nextInt();
_longSVValues[i] = RANDOM.nextLong();
- _floatSVValues[i] = _intSVValues[i] * RANDOM.nextFloat();
- _doubleSVValues[i] = _intSVValues[i] * RANDOM.nextDouble();
+ // Match ingestion's signed-zero normalization before these arrays are
used as expected values.
+ _floatSVValues[i] = _intSVValues[i] * RANDOM.nextFloat() + 0.0f;
+ _doubleSVValues[i] = _intSVValues[i] * RANDOM.nextDouble() + 0.0d;
_bigDecimalSVValues[i] =
BigDecimal.valueOf(RANDOM.nextDouble()).multiply(BigDecimal.valueOf(_intSVValues[i])).stripTrailingZeros();
_stringSVValues[i] = df.format(_intSVValues[i] * RANDOM.nextDouble());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]