I have two columns in cassandra of type bigint.
Using gocql I want to retrieve values from these columns using the IN clause.
My query looks something like this -
QUERY := select column1,column2,column3 from tableName
where id1 in (?)
and id2 in (?)
ALLOW FILTERING;
And I am calling this query from my code like -
query := db.CassandraSession.Query(QUERY, Ids1, Ids2)
where Ids1 and Ids2 are two slices of type int64 (i.e. []int64)
when executing this query using
iter := query.Iter()
for iter.Scan(.....
)
err := iter.Close()
I get error can not marshal []int64 into bigint
Can someone help me in resolving this?