Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Brian O'NeillBrian O'NeillReporter
Brian O'NeillBrian O'NeillPriority
Not specifiedFix versions
Pull Request URL
Details
Details
Assignee
Brian O'Neill
Brian O'NeillReporter
Brian O'Neill
Brian O'NeillPriority
Fix versions
Pull Request URL
Created May 5, 2015 at 1:30 AM
Updated May 6, 2015 at 2:12 PM
Resolved May 6, 2015 at 2:11 PM
Using the following CQL:
create table if not exists ks.people (
id int primary key,
name text,
birth_date timestamp
);
insert into ks.people (id, name, birth_date) values (10, 'Catherine', '1987-12-02');
insert into ks.people (id, name, birth_date) values (11, 'Isadora', '2004-09-08');
insert into ks.people (id, name, birth_date) values (12, 'Anna', '1970-10-02');
When reading this table from ECL, the timestamps are left unbound. They can be read as data elements like so:
person := RECORD
integer4 id,
string name,
data birth_date
END;
But using other data types results in:
<Exception><Source>Roxie</Source><Message>cassandra: type mismatch - integer expected for field birth_date, received TIMESTAMP</Message></Exception>
We should add the ability to bind TIMESTAMP typed elements in the Cassandra plugin. I'll have a look at doing this.