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
Hi guys, may I know if the secondary indexes support float data type. As mentioned from this previous issue #252, creating a secondary index must specify the appropriate data type to the value.
I'm raising this since I'm dealing with float values. Here are the sample data from aerospikedb,
As seen above, fare_amount have decimal values. I was thinking that this is the reason why my script is not printing any results.
You are correct. Secondary indexes on floats aren't supported yet. The given code creates a secondary index on a bin "fare_amount" that holds integers. Fare_amount is actually a bin that holds floats, so when the query attempts to find records with a "fare_amount" value between two integers, it finds nothing.
There is an error with the code. p.between() requires 3 arguments, a bin name, min, and max values .
Hi guys, may I know if the secondary indexes support float data type. As mentioned from this previous issue #252, creating a secondary index must specify the appropriate data type to the value.
I'm raising this since I'm dealing with float values. Here are the sample data from aerospikedb,
As seen above, fare_amount have decimal values. I was thinking that this is the reason why my script is not printing any results.
Here is the code,
The text was updated successfully, but these errors were encountered: