TAJO-823: Missing INET4 handling in DatumFactory.cast(). (jihoon)
Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/214301fd Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/214301fd Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/214301fd Branch: refs/heads/window_function Commit: 214301fdd51b144ba65fc3dd8bd3c862d537cad7 Parents: 8e80046 Author: Jihoon Son <[email protected]> Authored: Mon May 12 17:33:56 2014 +0900 Committer: Jihoon Son <[email protected]> Committed: Mon May 12 17:33:56 2014 +0900 ---------------------------------------------------------------------- CHANGES | 2 ++ tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java | 2 ++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/214301fd/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 47884b8..fcd4dbc 100644 --- a/CHANGES +++ b/CHANGES @@ -37,6 +37,8 @@ Release 0.9.0 - unreleased BUG FIXES + TAJO-823: Missing INET4 handling in DatumFactory.cast(). (jihoon) + TAJO-803: INSERT INTO without FROM throws ClassCastException. (Hyoungjun Kim via hyunsik) http://git-wip-us.apache.org/repos/asf/tajo/blob/214301fd/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java ---------------------------------------------------------------------- diff --git a/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java b/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java index dad4eda..5ce36e5 100644 --- a/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java +++ b/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java @@ -384,6 +384,8 @@ public class DatumFactory { return DatumFactory.createTimestamp(operandDatum); case BLOB: return DatumFactory.createBlob(operandDatum.asByteArray()); + case INET4: + return DatumFactory.createInet4(operandDatum.asByteArray()); default: throw new InvalidCastException(operandDatum.type(), target.getType()); }
