Browse files

need to convert boolean to BooleanWritable as well, was completely ne…

…glecting it
  • Loading branch information...
1 parent d3389e3 commit 24fce2d43f941bc9250a8b63adc308c7c8fe3ed6 @thedatachef thedatachef committed Aug 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/infochimps/elasticsearch/pig/ElasticSearchStorage.java
View
2 src/main/java/com/infochimps/elasticsearch/pig/ElasticSearchStorage.java
@@ -328,6 +328,8 @@ private Writable toWritable(Object thing) {
return new DoubleWritable((Double)thing);
} else if (thing instanceof Float) {
return new FloatWritable((Float)thing);
+ } else if (thing instanceof Boolean) {
+ return new BooleanWritable((Boolean)thing);
} else if (thing instanceof Map) {
MapWritable result = new MapWritable();
for (Map.Entry<String,Object> entry : ((Map<String,Object>)thing).entrySet()) {

0 comments on commit 24fce2d

Please sign in to comment.