From d6204d40e2839aa2d7277c5c3546c9c29537a6b0 Mon Sep 17 00:00:00 2001 From: nikhil Date: Sat, 13 Dec 2014 13:46:50 +0530 Subject: [PATCH] Typecode 50 for Writable not handled by typedbytes --- typedbytes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typedbytes.py b/typedbytes.py index c66391f..72d2849 100644 --- a/typedbytes.py +++ b/typedbytes.py @@ -28,6 +28,10 @@ LIST = 9 MAP = 10 +# As defined here: +# https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/typedbytes/Type.java#L40 +WRITABLE = 50 + # Application-specific types: PICKLE = 100 BYTESTRING = 101 @@ -193,6 +197,7 @@ def invalid_typecode(self): VECTOR: read_vector, LIST: read_list, MAP: read_map, + WRITABLE: read_bytes, PICKLE: read_pickle, BYTESTRING: read_bytestring, MARKER: read_marker