You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.lazy.LazyString cannot be cast to org.apache.hadoop.io.Writable
at com.esri.hadoop.hive.serde.JsonSerde.serialize(Unknown Source)
Candidate patch:
Writable writable;
// = (Writable)fieldWritables.get(i); // usually Text; exception on LazyString
Object tmpObj = fieldWritables.get(i); // usually Text; exception on LazyString
if (tmpObj instanceof LazyPrimitive) {
writable = ((LazyPrimitive)(tmpObj)).getWritableObject();
} else {
writable = (Writable)tmpObj;
}
//Float dummy = (Float)tmpObj; // temporary test
jsonGen.writeObjectField(columnNames.get(i), writable.toString());
The text was updated successfully, but these errors were encountered:
Got ClassCastException with LazyString in JsonSerde with queries like the following:
More detail of the exception:
Candidate patch:
The text was updated successfully, but these errors were encountered: