hequn8128 commented on a change in pull request #9865: [FLINK-14212][python] 
Support no-argument Python UDFs.
URL: https://github.com/apache/flink/pull/9865#discussion_r333860456
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/plan/ExpressionReductionRulesTest.scala
 ##########
 @@ -510,3 +528,14 @@ object DeterministicNullFunc extends ScalarFunction {
   def eval(): String = null
   override def isDeterministic = true
 }
+
+object MockedPythonUDFWithoutArguments extends ScalarFunction {
+
+  override def getLanguage: FunctionLanguage = FunctionLanguage.PYTHON
+
+  def eval(): Long = {
 
 Review comment:
   Simplify the eval to `def eval(): Long = 1L` directly? and change the class 
name to `DeterministicPythonFunc`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to