cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/6] git commit: fix bad validator lookup patch by dbrosius; reviewed by jbellis for CASSANDRA-3789
Date Thu, 26 Jan 2012 07:33:40 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/a43c1ebb
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a43c1ebb
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a43c1ebb

Branch: refs/heads/trunk
Commit: a43c1ebbfc7808f3202e2a7213bbbb26802bf7dc
Parents: b60101c
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:33:24 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/a43c1ebb/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java b/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
index 9a84646..faf1679 100644
--- a/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
+++ b/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
@@ -397,7 +397,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