generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Labels
PPLPiped processing languagePiped processing languagecalcitecalcite migration releatedcalcite migration releatedenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem?
#3229 implements PPL functions with the Calcite engine. However, the parameter types and lengths are not being checked for the time being. It will only throw error at execution time.
Currently, if the parameter type / length is incorrect, it will throw an error like:
Exception happened during execution
...
Caused by java.lang.RuntimeException: java.sql.SQLException: Error while preparing plan..
...
Caused by: Suppressed: java.lang.RuntimeException: while resolving method methodName(paramType1, paramType2, ...)
...
Caused by: java.lang.NoSuchMethodException: methodName(paramType1, paramType2, ...)
...
Users will see the first error message with an 500 internal error tag in their request response. An error message with the wrong and proper parameter types will be more informative to users.
The validation mechanism from Calcite is not used -- the phase it takes effect is skipped.
What solution would you like?
Implement a function validation mechanism.
What alternatives have you considered?
Do you have any additional context?
Metadata
Metadata
Assignees
Labels
PPLPiped processing languagePiped processing languagecalcitecalcite migration releatedcalcite migration releatedenhancementNew feature or requestNew feature or request
Type
Projects
Status
Done