Github user hyunsik commented on a diff in the pull request:
https://github.com/apache/tajo/pull/652#discussion_r39255984
--- Diff: tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
---
@@ -462,7 +459,7 @@ public static Datum cast(Datum operandDatum, DataType
target, @Nullable TimeZone
case ANY:
return DatumFactory.createAny(operandDatum);
default:
- throw new InvalidCastException(operandDatum.type(),
target.getType());
+ throw new TajoRuntimeException(Errors.ResultCode.INVALID_CAST,
operandDatum.type().name(), target.getType().name());
--- End diff --
It should be ```new TajoRuntimeException(new InvalidCastException(...)```.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---