[ https://issues.apache.org/jira/browse/CASSANDRA-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999525#comment-12999525 ]
Eric Evans commented on CASSANDRA-2124: --------------------------------------- {quote} - name: IndexedTable compare_with: LongType issue is: {why: expected 8 or 0 long(9)}. something like this. {quote} Right, the comparator is for the column _name_, which in your previous example was "birthdate". It fails to validate because a long is 8 bytes in length and "birthdate" is 9 bytes. Validators apply to column values, if you have not configured a default validator, _or_ a column specific one (using column_metadata), then it is {{BytesType}} (i.e. no validation). {quote} Yes. i can see that both are validated. but from batchUpdate method, call is validateColumn(keyspace, update.getColumnFamily(), column.getKey().getByteBuffer()); {quote} {{getKey()}} is a method of {{java.util.Map.Entry}}, it returns the column name (the "key" in this entry), because we're iterating over a map of columns. This code is working correctly. > JDBC driver for CQL > ------------------- > > Key: CASSANDRA-2124 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2124 > Project: Cassandra > Issue Type: New Feature > Components: API > Reporter: Eric Evans > Assignee: Vivek Mishra > Priority: Minor > Labels: cql > Attachments: Cassandra-2124_v1.0, cassandra-0.7.1-2124_v2.0, > cassandra-0.7.1-2124_v2.1, cassandra_generic_decoder.patch > > > A simple connection class and corresponding pool was created for CQL as a > part of CASSANDRA-1710, but a JDBC driver (either in addition to, or as a > replacement for) would also be interesting. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira