Github user hequn8128 commented on a diff in the pull request:
https://github.com/apache/flink/pull/6223#discussion_r199537075
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/codegen/calls/FunctionGenerator.scala
---
@@ -300,6 +300,24 @@ object FunctionGenerator {
DOUBLE_TYPE_INFO,
BuiltInMethods.ATAN_DEC)
+ addSqlFunctionMethod(
+ ATAN2,
+ Seq(DOUBLE_TYPE_INFO, DOUBLE_TYPE_INFO),
+ DOUBLE_TYPE_INFO,
+ BuiltInMethods.ATAN2)
+
+ addSqlFunctionMethod(
+ ATAN2,
+ Seq(DOUBLE_TYPE_INFO, BIG_DEC_TYPE_INFO),
+ DOUBLE_TYPE_INFO,
+ BuiltInMethods.ATAN2_DEC)
+
+ addSqlFunctionMethod(
+ ATAN2,
+ Seq(BIG_DEC_TYPE_INFO, BIG_DEC_TYPE_INFO),
+ DOUBLE_TYPE_INFO,
+ BuiltInMethods.ATAN2_DEC)
--- End diff --
BuiltInMethods.ATAN2_DEC_DEC
---