Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/incubator-phoenix/pull/18#discussion_r10554998
--- Diff: phoenix-core/src/main/antlr3/PhoenixSQL.g ---
@@ -778,7 +778,7 @@ term returns [ParseNode ret]
$ret = factory.rowValueConstructor(l);
}
}
- | CAST LPAREN e=expression AS dt=identifier RPAREN { $ret =
factory.cast(e, dt); }
+ | CAST LPAREN e=expression AS dt=identifier ar=ARRAY? RPAREN { $ret
= ar==null ? factory.cast(e, dt) : factory.cast(e, dt, true); }
--- End diff --
Can you support both the ARRAY keyword as well as square brackets so either
of these would work:
CAST e CHAR[] AS VARCHAR[]
or
CAST e CHAR ARRAY AS VARCHAR ARRAY
---
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.
---