In rust, Ord means total order, while PartiarOrd mean partital order. Currently we have derived Ord for both PrimitiveLiteral and Literal, which is incorrect. How could we compare Struct with Map, or Date with String? We should do following changes:
Remove PartialOrd, Ord for both Literal.
Remove Ord for PrimitiveLiteral. I think we should also remove PartialOrd for PrimitiveLiteral, which misses type information for decimal.
In rust,
Ord
means total order, whilePartiarOrd
mean partital order. Currently we have derivedOrd
for bothPrimitiveLiteral
andLiteral
, which is incorrect. How could we compareStruct
withMap
, orDate
withString
? We should do following changes:PartialOrd
,Ord
for bothLiteral
.Ord
forPrimitiveLiteral
. I think we should also removePartialOrd
forPrimitiveLiteral
, which misses type information for decimal.PartialOrd
forDatum
.