Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13191 Add a simplified UDF type extraction
  3. FLINK-18628

Invalid error message for overloaded methods with same parameter name

    XMLWordPrintableJSON

    Details

      Description

      If a function has overloaded evaluation methods but same argument names, this leads to a confusing error message where types are missing:

      Caused by: org.apache.flink.table.api.ValidationException: Invalid input arguments. Expected signatures are:
      test-catalog.TEST_DB.myScalarFunc(a => )
      	at org.apache.flink.table.types.inference.TypeInferenceUtil.createInvalidInputException(TypeInferenceUtil.java:190)
      	at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypesOrError(TypeInferenceOperandChecker.java:131)
      	at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypes(TypeInferenceOperandChecker.java:89)
      	... 79 common frames omitted
      Caused by: org.apache.flink.table.api.ValidationException: Invalid input arguments.
      	at org.apache.flink.table.types.inference.TypeInferenceUtil.inferInputTypes(TypeInferenceUtil.java:467)
      	at org.apache.flink.table.types.inference.TypeInferenceUtil.adaptArguments(TypeInferenceUtil.java:123)
      	at org.apache.flink.table.types.inference.TypeInferenceUtil.adaptArguments(TypeInferenceUtil.java:102)
      	at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypesOrError(TypeInferenceOperandChecker.java:126)
      	... 80 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                twalthr Timo Walther
                Reporter:
                twalthr Timo Walther
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: