youzhi886 commented on code in PR #10874: URL: https://github.com/apache/inlong/pull/10874#discussion_r1730273203
########## inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformArithmeticFunctionsProcessor.java: ########## @@ -174,6 +174,41 @@ public void testLog10Function() throws Exception { Assert.assertEquals(output2.get(0), "result=3.0"); } + @Test + public void testFactorialFunction() throws Exception { + String transformSql = "select factorial(numeric1) from source"; + TransformConfig config = new TransformConfig(transformSql); + TransformProcessor<String, String> processor = TransformProcessor + .create(config, SourceDecoderFactory.createCsvDecoder(csvSource), + SinkEncoderFactory.createKvEncoder(kvSink)); + // case1: 测试非负整数的阶乘 Review Comment: Thank you for the reminder. I have made the necessary changes. ![Uploading 微信截图_20240825152528.png…]() -- 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...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org