Github user ramkrish86 commented on a diff in the pull request:
https://github.com/apache/incubator-phoenix/pull/8#discussion_r10157196
--- 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 --
Constructor of Array impl? How would you do that? The constructor gets
invocated
@Override
public Array createArrayOf(String typeName, Object[] elements)
throws SQLException {
PDataType arrayPrimitiveType =
PDataType.fromSqlTypeName(typeName);
return
PArrayDataType.instantiatePhoenixArray(arrayPrimitiveType, elements);
}
Because the maxLength is associated with ColDef only right?
---
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.
---