Github user ramkrish86 commented on a diff in the pull request:
https://github.com/apache/incubator-phoenix/pull/18#discussion_r10554556
--- Diff:
phoenix-core/src/test/java/org/apache/phoenix/end2end/ArrayTest.java ---
@@ -524,7 +524,43 @@ public void testCharArraySpecificIndex() throws
Exception {
conn.close();
}
}
-
+
+ @Test
+ public void testArrayWithDescOrder() throws Exception {
--- End diff --
Pls check my latest pull request. I have added a test for CAST from
VARCHAR to CHAR. But i think in that case the neither coerceExpression has the
maxLength nor the CHAR.getByteSize is not null. We get NPE in that case. How
to handle then? I have handled all other cases and generally value would be
null and we need to create the array object once again.
Could you pls take a look at it?
---
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.
---