docete commented on a change in pull request #11021:
[FLINK-15546][table-planner-blink] Fix obscure error message from Sca…
URL: https://github.com/apache/flink/pull/11021#discussion_r376236608
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/calls/ScalarOperatorGens.scala
##########
@@ -1280,8 +1280,8 @@ object ScalarOperatorGens {
| (INTERVAL_YEAR_MONTH, BIGINT) =>
internalExprCasting(operand, targetType)
- case (from, to) =>
- throw new CodeGenException(s"Unsupported cast from '$from' to '$to'.")
+ case (_, _) =>
+ throw new CodeGenException(s"Unsupported cast from
'${operand.resultType}' to '$targetType'.")
Review comment:
modified
----------------------------------------------------------------
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