aditya0811 commented on issue #12367: URL: https://github.com/apache/pinot/issues/12367#issuecomment-2045759962
Hello Jackie, I was able to reproduce the error by changing `protected static final int NUM_ROWS = 1` and below in `setUp()` in `BaseTransformFunctionTest.java`. ``` floatSVValues[i] = 0.1f ``` And below in `CaseTransformFunctionTest.java` ``` private static final TransformFunctionType[] BINARY_OPERATOR_TRANSFORM_FUNCTIONS = new TransformFunctionType[]{ TransformFunctionType.EQUALS }; ``` Error trace ``` java.lang.AssertionError: Expected :1876674542 Actual :10 <Click to see difference> at org.testng.Assert.fail(Assert.java:111) at org.testng.Assert.failNotEquals(Assert.java:1578) at org.testng.Assert.assertEqualsImpl(Assert.java:150) at org.testng.Assert.assertEquals(Assert.java:132) at org.testng.Assert.assertEquals(Assert.java:1419) at org.testng.Assert.assertEquals(Assert.java:1383) at org.testng.Assert.assertEquals(Assert.java:1429) at org.apache.pinot.core.operator.transform.function.BaseTransformFunctionTest.testTransformFunction(BaseTransformFunctionTest.java:345) at org.apache.pinot.core.operator.transform.function.CaseTransformFunctionTest.testCaseQueryWithIntResults(CaseTransformFunctionTest.java:595) at org.apache.pinot.core.operator.transform.function.CaseTransformFunctionTest.testCaseQueries(CaseTransformFunctionTest.java:223) at org.apache.pinot.core.operator.transform.function.CaseTransformFunctionTest.testCaseTransformFunctionWithIntResults(CaseTransformFunctionTest.java:108) ``` And the test passed with this ``` testCaseQueries(String.format("%s(%s, %s)", functionType.getName(), FLOAT_SV_COLUMN, "CAST (" + String.format("%f", _floatSVValues[INDEX_TO_COMPARE]) +" AS FLOAT)"), getPredicateResults(FLOAT_SV_COLUMN, functionType)); ``` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org