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

    https://github.com/apache/phoenix/pull/1#discussion_r14834905
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/compile/ExpressionCompiler.java 
---
    @@ -320,7 +322,21 @@ public Expression visitLeave(FunctionParseNode node, 
List<Expression> children)
          * @throws SQLException if the column expression node does not refer 
to a known/unambiguous column
          */
         protected ColumnRef resolveColumn(ColumnParseNode node) throws 
SQLException {
    -        ColumnRef ref = 
context.getResolver().resolveColumn(node.getSchemaName(), node.getTableName(), 
node.getName());
    +        ColumnRef ref = null;
    +        try {
    +            ref = 
context.getResolver().resolveColumn(node.getSchemaName(), node.getTableName(), 
node.getName());
    +        } catch (ColumnNotFoundException e) {
    +            // If local index table (need to test join case here)
    --- End diff --
    
    Added the comment.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to