This is an automated email from the ASF dual-hosted git repository. KKcorps pushed a commit to branch codex/float-and-config-regression-coverage in repository https://gitbox.apache.org/repos/asf/pinot.git
commit 4c50b7021dd59255e0de5bf47237c557f7dca4eb Author: Kartik Khare <[email protected]> AuthorDate: Thu Nov 5 09:19:00 2026 +0530 Remove JSON codec coverage to keep the change within scope --- .../response/encoder/JsonResponseEncoderTest.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pinot-common/src/test/java/org/apache/pinot/common/response/encoder/JsonResponseEncoderTest.java b/pinot-common/src/test/java/org/apache/pinot/common/response/encoder/JsonResponseEncoderTest.java index c43d4c2a7b4..4625d618be1 100644 --- a/pinot-common/src/test/java/org/apache/pinot/common/response/encoder/JsonResponseEncoderTest.java +++ b/pinot-common/src/test/java/org/apache/pinot/common/response/encoder/JsonResponseEncoderTest.java @@ -31,7 +31,6 @@ import org.apache.pinot.common.response.broker.ResultTable; import org.apache.pinot.common.utils.DataSchema; import org.apache.pinot.common.utils.DataSchema.ColumnDataType; import org.apache.pinot.spi.utils.UuidUtils; -import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; @@ -40,22 +39,6 @@ import static org.testng.Assert.fail; public class JsonResponseEncoderTest { - @DataProvider(name = "floatArrayValues") - public Object[][] floatArrayValues() { - return new Object[][]{{Float.NEGATIVE_INFINITY}, {Float.POSITIVE_INFINITY}, {Float.NaN}, {3.5f}}; - } - - @Test(dataProvider = "floatArrayValues") - public void testFloatArrayPreservesNonFiniteValues(float value) - throws IOException { - DataSchema schema = new DataSchema(new String[]{"value"}, new ColumnDataType[]{ColumnDataType.FLOAT_ARRAY}); - ResultTable table = new ResultTable(schema, List.<Object[]>of(new Object[]{new float[]{value}})); - JsonResponseEncoder encoder = new JsonResponseEncoder(); - byte[] encoded = encoder.encodeResultTable(table, 0, 1); - float actual = ((float[]) encoder.decodeResultTable(encoded, 1, schema).getRows().get(0)[0])[0]; - assertEquals(actual, value, "The response codec must preserve non-finite FLOAT_ARRAY elements"); - } - @Test public void testEncodeDecodeSingleRow() throws IOException { // Define a schema with two columns: one integer and one string. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
