jameshartig commented on PR #1834: URL: https://github.com/apache/cassandra-gocql-driver/pull/1834#issuecomment-2580557131
> Or is https://github.com/apache/cassandra-gocql-driver/pull/1856 just limited to byte slices and we still can't read nullable values for other types? Yes, that's just for byte slices. > Furthermore, it seems like this behavior should be the default since Cassandra can return nullable values. This is maybe something we can consider for 2.0 but there's no way we could make that change in the existing version. > Currently, gocql represents these as default Go values, which alters the original data. You can use pointers if you which to get the "original data". I've seen places that utilize the default Go values as a feature because they don't have to check for nil and can rely on the default value. I also provided a code example in the original issue with how you can do this quite easily without any changes to gocql. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

