cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [6/7] git commit: fix bad validator lookup patch by dbrosius; reviewed by jbellis for CASSANDRA-3789
Date Thu, 26 Jan 2012 23:00:18 GMT
fix bad validator lookup
patch by dbrosius; reviewed by jbellis for CASSANDRA-3789


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

Branch: refs/heads/trunk
Commit: 1a0102751b55f9365fff3f25ab3d7b83e657422b
Parents: 5c66bd9
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Thu Jan 26 01:24:35 2012 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Thu Jan 26 01:25:53 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/1a010275/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 61f23dd..4513783 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
@@ -373,7 +373,7 @@ public class CassandraStorage extends LoadFunc implements StoreFuncInterface,
Lo
             tupleFields.add(colSchema);
 
             valSchema = new ResourceFieldSchema();
-            validator = validators.get(cdef.getName());
+            validator = validators.get(ByteBuffer.wrap(cdef.getName()));
             if (validator == null)
                 validator = marshallers.get(1);
             valSchema.setName("value");


Mime
View raw message