yfsn666 commented on code in PR #10814: URL: https://github.com/apache/inlong/pull/10814#discussion_r1721611522
########## inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformArithmeticFunctionsProcessor.java: ########## @@ -281,4 +281,17 @@ public void testSinhFunction() throws Exception { Assert.assertEquals(1, output3.size()); Assert.assertEquals(output3.get(0), "result=3.626860407847019"); } + + @Test + public void testCosFunction() throws Exception { + String transformSql = "select cos(numeric1) from source"; + TransformConfig config = new TransformConfig(transformSql); + TransformProcessor<String, String> processor = TransformProcessor + .create(config, SourceDecoderFactory.createCsvDecoder(csvSource), + SinkEncoderFactory.createKvEncoder(kvSink)); + // case: sin(0) Review Comment: The comment is incorrect. ```suggestion // case: cos(0) ``` -- 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