Skip to content

Commit

Permalink
for String type input, JavaStringDateObjectInspector getPrimitiveJava…
Browse files Browse the repository at this point in the history
…Object should not return null

Signed-off-by: wangxianbin1987 <[email protected]>
  • Loading branch information
wangxianbin1987 committed May 24, 2016
1 parent 1ab18b1 commit 2af20b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public DateWritable getPrimitiveWritableObject(Object o) {
@Override
public Date getPrimitiveJavaObject(Object o) {
if(o instanceof String) {
parse((String)o);
return parse((String)o);
} else {
if (o instanceof Date) return (Date) o;
}
Expand Down

0 comments on commit 2af20b9

Please sign in to comment.