[
https://issues.apache.org/jira/browse/CASSANDRA-6083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13804668#comment-13804668
]
Alex Liu commented on CASSANDRA-6083:
-------------------------------------
It works for cassandra-1.2 as the following testing
{code}
CREATE TABLE test1 (a int PRIMARY KEY, b bigint);
CREATE TABLE moredata1 (x int PRIMARY KEY, y int);
INSERT INTO test1 (a,b) VALUES (1,1);
INSERT INTO test1 (a,b) VALUES (2,2);
INSERT INTO test1 (a,b) VALUES (3,3);
INSERT INTO moredata1 (x, y) VALUES (4,4);
INSERT INTO moredata1 (x, y) VALUES (5,5);
INSERT INTO moredata1 (x, y) VALUES (6,6);
moretestvalues= LOAD 'cql://cql3ks/moredata1' USING CqlStorage();");
insertformat= FOREACH moretestvalues GENERATE
TOTUPLE(TOTUPLE('a',x)),TOTUPLE(y);
STORE insertformat INTO
'cql://cql3ks/test1?output_query=UPDATE+cql3ks.test1+set+b+%3D+%3F' USING
CqlStorage();
result= LOAD 'cql://cql3ks/test1' USING CqlStorage();");
dump result;
{code}
> Pig requires explicit cast from int to long to save to Cassandra
> ----------------------------------------------------------------
>
> Key: CASSANDRA-6083
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6083
> Project: Cassandra
> Issue Type: Bug
> Components: Hadoop
> Reporter: Chad Johnston
> Assignee: Alex Liu
> Priority: Minor
>
> Since version 1.2.10, I have to manually cast any int values in Pig to long
> in order to store them into bigint Cassandra columns. I did not have to
> perform this cast in previous versions of Cassandra.
--
This message was sent by Atlassian JIRA
(v6.1#6144)