apache / apache/cassandra-gocql-driver

SliceMap() not returning exact Cassandra table data, copies previous row values when column value is nil

Open
#727 3 comments 0 reactions 0 assignees View on GitHub
waiting-for-info
Dominant language
Go
Stars
2.7k
Forks
658
PR merge metrics
No merged PRs in 30d

Description

Hi,

I encountered a problem when executing gocql iter.SliceMap for TimeStamp based columns. For the rows having columns with null values in Cassandra, SliceMap returning result set by copying previous row's column value. I observed this for TimeStamp based column types, not sure about other column types. I'm not getting this issue with iter.MapScan(). Anybody please help..

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through iter.SliceMap with Cassandra rows containing nil timestamp values, then compare its results with iter.MapScan. Investigate why SliceMap copies a previous row's value; done when nil columns retain their correct values and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, go
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.