apache / apache/cassandra-gocql-driver
QUERY ACCORDING TO DATE CONDITION
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 658
- PR merge metrics
- No merged PRs in 30d
Description
For example:
**1) lastdate value is static ('2022-08-31 11:08') .**
`iter := Session.Query("SELECT * FROM students where lastdate>'2022-08-31 11:08' and firstname=? ALLOW FILTERING", name).Iter();`

**2) lastdate is variable and using in query.**
`lastdate := "2022-08-31 11:08"`
`iter := Session.Query("SELECT * FROM students where lastdate>? and firstname=? ALLOW FILTERING", lastdate, name).Iter()`

**What is problem in this query?**
Contributor guide
Research direction
Start with the two Session.Query(...).Iter() examples and compare the literal and parameterized lastdate conditions, including the attached screenshots. Reproduce the behavior against Cassandra, then determine whether the issue is in the query or the driver; there is no specific code change or test named in the report.
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
- 20/100