Github user chrajeshbabu commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/1#discussion_r14834867
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/compile/CreateIndexCompiler.java
---
@@ -47,6 +51,21 @@ public MutationPlan compile(final CreateIndexStatement
create) throws SQLExcepti
final StatementContext context = new StatementContext(statement,
resolver, scan);
ExpressionCompiler expressionCompiler = new
ExpressionCompiler(context);
List<ParseNode> splitNodes = create.getSplitNodes();
+ if (create.getIndexType() == IndexType.LOCAL) {
+ if (!splitNodes.isEmpty()) {
+ throw new
SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_SPLIT_LOCAL_INDEX)
+ .build().buildException();
+ }
+ if (create.getProps() != null && create.getProps().get("") !=
null) {
+ List<Pair<String, Object>> list =
create.getProps().get("");
--- End diff --
corrected.
---
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.
---