Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/36#discussion_r24837706
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java ---
    @@ -993,6 +1013,9 @@ public MutationState createIndex(CreateIndexStatement 
statement, byte[][] splits
                         if (expression.getDeterminism() != Determinism.ALWAYS) 
{
                             throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.NON_DETERMINISTIC_EXPRESSION_NOT_ALLOWED_IN_INDEX).build().buildException();
                         }
    +                    if (expression.isStateless()) {
    +                        throw new 
SQLExceptionInfo.Builder(SQLExceptionCode.STATELESS_EXPRESSION_NOT_ALLOWED_IN_INDEX).build().buildException();
    +                    }
                         // true for any constant (including a view constant), 
as we don't need these in the index
    --- End diff --
    
    Remove this if, as it'll never execute.


---
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.
---

Reply via email to