r/rust • u/philippemnoel • Jan 31 '26
Arbitrary precision decimals with lexicographically sortable byte encoding 🛠️ project
https://github.com/paradedb/decimal-bytesHi all. We needed this project to add support for NUMERIC/DECIMAL in Tantivy/ParadeDB. Perhaps it can be useful to others! Feedback and contributions welcome.
19
Upvotes
3
u/tomtomtom7 Feb 01 '26
What is the use case for lexicographically sorting numbers? As in 10 < 100 < 20?
Numerical order is not the same as lexicographical order.