commit | 6fec95bdcb7b874b9ec7c3e564b704625105cb6e | [log] [tgz] |
---|---|---|
author | alexander.behm <alexander.behm@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 29 00:50:59 2012 +0000 |
committer | alexander.behm <alexander.behm@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 29 00:50:59 2012 +0000 |
tree | 0601b2d4e641ccd01e4d36325bd4d22aa072c34e | |
parent | 0f514f0b9fb124d654788b057cf569f8c0c1d34d [diff] |
Minor fix. git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_fix_agg@579 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-om/src/main/java/edu/uci/ics/asterix/builders/OrderedListBuilder.java b/asterix-om/src/main/java/edu/uci/ics/asterix/builders/OrderedListBuilder.java index a336841..9fb422d 100644 --- a/asterix-om/src/main/java/edu/uci/ics/asterix/builders/OrderedListBuilder.java +++ b/asterix-om/src/main/java/edu/uci/ics/asterix/builders/OrderedListBuilder.java
@@ -58,7 +58,7 @@ public void addItem(IValueReference item) throws HyracksDataException { if (!fixedSize) this.offsets.add((short) outputStream.size()); - if (itemTypeTag == ATypeTag.ANY || item.getByteArray()[0] == serNullTypeTag) { + if (itemTypeTag == ATypeTag.ANY || (itemTypeTag == ATypeTag.NULL && item.getByteArray()[0] == serNullTypeTag)) { this.numberOfItems++; this.outputStream.write(item.getByteArray(), item.getStartOffset(), item.getLength()); } else if (item.getByteArray()[0] != serNullTypeTag) {
diff --git a/asterix-om/src/main/java/edu/uci/ics/asterix/builders/UnorderedListBuilder.java b/asterix-om/src/main/java/edu/uci/ics/asterix/builders/UnorderedListBuilder.java index d4fd029..90fb2b5 100644 --- a/asterix-om/src/main/java/edu/uci/ics/asterix/builders/UnorderedListBuilder.java +++ b/asterix-om/src/main/java/edu/uci/ics/asterix/builders/UnorderedListBuilder.java
@@ -61,7 +61,7 @@ public void addItem(IValueReference item) throws HyracksDataException { if (!fixedSize) this.offsets.add((short) outputStream.size()); - if (itemTypeTag == ATypeTag.ANY || item.getByteArray()[0] == serNullTypeTag) { + if (itemTypeTag == ATypeTag.ANY || (itemTypeTag == ATypeTag.NULL && item.getByteArray()[0] == serNullTypeTag)) { this.numberOfItems++; this.outputStream.write(item.getByteArray(), item.getStartOffset(), item.getLength()); } else if (item.getByteArray()[0] != serNullTypeTag) {