Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/incubator-phoenix/pull/8#discussion_r10156802
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/expression/LiteralExpression.java
---
@@ -156,6 +162,9 @@ public static LiteralExpression newConstant(Object
value, PDataType type, Intege
throw TypeMismatchException.newException(type, actualType,
value.toString());
}
value = type.toObject(value, actualType);
+ if(type == PDataType.CHAR_ARRAY) {
--- End diff --
See note down a ways - don't have a setMaxLength on array. Plus there are
other fixed length arrays than just CHAR_ARRAY. By passing maxLength through
the constructor of or Array impl, we'll be better off.
---
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.
---