Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query need to return null values without casting #161

Open
mmafic opened this issue Aug 29, 2023 · 5 comments
Open

Query need to return null values without casting #161

mmafic opened this issue Aug 29, 2023 · 5 comments
Labels
backend bug Something isn't working

Comments

@mmafic
Copy link

mmafic commented Aug 29, 2023

It looks like currently all values are being cast to float64, is it possible to return values from a query without casting? With all null values being coalesced to 0 it's impossible to get a minimum value in the dataset, which breaks some use cases.

@HadesArchitect
Copy link
Owner

@unflag This one was fixed with your #172?

@HadesArchitect HadesArchitect added bug Something isn't working backend labels Oct 12, 2023
@unflag
Copy link
Collaborator

unflag commented Oct 12, 2023

No, nil values are not supported yet. I'll look into this, perhaps it may fit well into the current changes.

@unflag
Copy link
Collaborator

unflag commented Oct 18, 2023

There is a limitation on the gocql level - the MapScan method doesn't support nil values, unfortunately.
apache/cassandra-gocql-driver#1699
There is a possible workaround mentioned in that issue - I'll try to figure it out.

@HadesArchitect
Copy link
Owner

@unflag was this one closed by 3.0.0?

@unflag
Copy link
Collaborator

unflag commented Nov 8, 2023

No, it is not, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants