cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject git commit: Add catch-all cast back to CassandraStorage. Patch by brandonwilliams reviewed by xedin for CASSANDRA-3886
Date Mon, 13 Feb 2012 21:00:50 GMT
Updated Branches:
  refs/heads/cassandra-1.0 2a5547981 -> 104791412


Add catch-all cast back to CassandraStorage.
Patch by brandonwilliams reviewed by xedin for CASSANDRA-3886


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/10479141
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/10479141
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/10479141

Branch: refs/heads/cassandra-1.0
Commit: 10479141285c885fcd77571a9b2397d684ecf826
Parents: 2a55479
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Mon Feb 13 14:45:48 2012 -0600
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Mon Feb 13 14:50:52 2012 -0600

----------------------------------------------------------------------
 .../cassandra/hadoop/pig/CassandraStorage.java     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/10479141/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
----------------------------------------------------------------------
diff --git a/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java b/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
index 76a291a..975d5ba 100644
--- a/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
+++ b/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
@@ -502,7 +502,7 @@ public class CassandraStorage extends LoadFunc implements StoreFuncInterface,
Lo
             return DoubleType.instance.decompose((Double)o);
         if (o instanceof UUID)
             return ByteBuffer.wrap(UUIDGen.decompose((UUID) o));
-        return null;
+        return ByteBuffer.wrap(((DataByteArray) o).get());
     }
 
     public void putNext(Tuple t) throws ExecException, IOException


Mime
View raw message