tanmesh commented on code in PR #9184: URL: https://github.com/apache/pinot/pull/9184#discussion_r955282704
########## pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/ExtractTransformFunctionTest.java: ########## @@ -0,0 +1,44 @@ +package org.apache.pinot.core.operator.transform.function; + +import java.util.function.LongToIntFunction; +import org.apache.pinot.common.function.scalar.DateTimeFunctions; +import org.apache.pinot.common.request.context.ExpressionContext; +import org.apache.pinot.common.request.context.RequestContextUtils; +import org.testng.Assert; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import static org.testng.Assert.assertEquals; + + +public class ExtractTransformFunctionTest extends BaseTransformFunctionTest { + + @DataProvider + public static Object[][] testCases() { + return new Object[][]{ + {"year", (LongToIntFunction) DateTimeFunctions::year}, {"month", Review Comment: May I get eyes on this? This is after reformatting. IMO, it is not clearer. -- 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