yiyutian1 commented on code in PR #25763: URL: https://github.com/apache/flink/pull/25763#discussion_r1905915205
########## flink-python/pyflink/table/tests/test_expression.py: ########## @@ -285,7 +285,14 @@ def test_expressions(self): self.assertEqual("toDate('2018-03-18')", str(to_date('2018-03-18'))) self.assertEqual("toDate('2018-03-18', 'yyyy-MM-dd')", str(to_date('2018-03-18', 'yyyy-MM-dd'))) - self.assertEqual('toTimestampLtz(123, 0)', str(to_timestamp_ltz(123, 0))) Review Comment: Hi @davidradl , thanks for the feedback. As you mentioned, ,negative cases are covered Java tests. To reduce the python overhead in Flink, we usually don't duplicate Java tests in python tests. Also, Flink python tests are light-weight API tests, and only check function **API signatures**, not the function themselves. In other words, even a negative test won't return error here, as long as the input are of the correct type. If we add a negative test here, it will lead to some confusion. ########## flink-python/pyflink/table/tests/test_expression.py: ########## @@ -285,7 +285,14 @@ def test_expressions(self): self.assertEqual("toDate('2018-03-18')", str(to_date('2018-03-18'))) self.assertEqual("toDate('2018-03-18', 'yyyy-MM-dd')", str(to_date('2018-03-18', 'yyyy-MM-dd'))) - self.assertEqual('toTimestampLtz(123, 0)', str(to_timestamp_ltz(123, 0))) Review Comment: Hi @davidradl , thanks for the feedback. As you mentioned, negative cases are covered Java tests. To reduce the python overhead in Flink, we usually don't duplicate Java tests in python tests. Also, Flink python tests are light-weight API tests, and only check function **API signatures**, not the function themselves. In other words, even a negative test won't return error here, as long as the input are of the correct type. If we add a negative test here, it will lead to some confusion. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org