You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to retrieve a Decimal column will not return the expected data.
On Cassandra, decimal columns are stored as a Buffer, and when it's retrieved by the native driver, it returns a Buffer object - however, when cassanova does the data scrub, it incorrectly transforms the Buffer object back into the decimal value.
Example
This is what I'm storing on my decimal column: 31.8439
And this is what cassanova returns: [0, 0, 0, 4, 4, 219, 231]
The text was updated successfully, but these errors were encountered:
Got some time to finally look into this.
Decimal types and Varint are not parsed yet in base driver (https://github.com/jorgebay/node-cassandra-cql).
Saying so I am parsing byte buffer back to decimal. I think we should wait for driver to do it.
Trying to retrieve a Decimal column will not return the expected data.
On Cassandra, decimal columns are stored as a Buffer, and when it's retrieved by the native driver, it returns a Buffer object - however, when cassanova does the data scrub, it incorrectly transforms the Buffer object back into the decimal value.
Example
This is what I'm storing on my decimal column: 31.8439
And this is what cassanova returns: [0, 0, 0, 4, 4, 219, 231]
The text was updated successfully, but these errors were encountered: