Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/45#discussion_r26340049
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDecimal.java ---
@@ -402,4 +402,25 @@ public String toStringLiteral(Object o, Format
formatter) {
public Object getSampleValue(Integer maxLength, Integer arrayLength) {
return new BigDecimal((Long) PLong.INSTANCE.getSampleValue(maxLength,
arrayLength));
}
+
+ // take details from
org.apache.phoenix.schema.types.PDataType#toBigDecimal(byte[], int, int)
+ @Override
+ public double signum(byte[] bytes, int offset, int length, SortOrder
sortOrder,
--- End diff --
return int here
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---