Commit 9a4a353d by Harish Butani

fix nested structure serialization for referenceable/struct

parent 643b6489
......@@ -152,7 +152,6 @@ public class InstanceE2ETest extends BaseTest {
Referenceable r1 = InstanceSerialization$.MODULE$.fromJsonReferenceable(jsonStr, true);
ClassType tableType = ts.getDataType(ClassType.class, "hive_table");
/* todo: fix deserialization, so following conver works
ITypedReferenceableInstance i = tableType.convert(r1, Multiplicity.REQUIRED);
jsonStr = Serialization$.MODULE$.toJson(i);
......@@ -160,6 +159,6 @@ public class InstanceE2ETest extends BaseTest {
i = Serialization$.MODULE$.fromJson(jsonStr);
System.out.println(i);
*/
}
}
......@@ -347,7 +347,7 @@ object InstanceSerialization {
val _formats = new DefaultFormats {
override val dateFormatter = TypeSystem.getInstance().getDateFormat.asInstanceOf[SimpleDateFormat]
override val typeHints = NoTypeHints
override val typeHints = FullTypeHints(List(classOf[_Id], classOf[_Struct], classOf[_Reference]))
}
def buildFormat(withBigDecimals : Boolean) = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment