Fix hash_code operator for real type
Make the hash_code operator consistent with the hash method defined
in real type.
@@ -165,7 +165,7 @@ public final class RealOperators
@SqlType(StandardTypes.BIGINT)
public static long hashCode(@SqlType(StandardTypes.REAL) long value)
{
- return AbstractIntType.hash((int) value);
+ return AbstractIntType.hash(floatToIntBits(intBitsToFloat((int) value)));
}
@ScalarOperator(XX_HASH_64)
