[ 
https://issues.apache.org/jira/browse/PHOENIX-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410388#comment-17410388
 ] 

ASF GitHub Bot commented on PHOENIX-6365:
-----------------------------------------

stoty commented on a change in pull request #1133:
URL: https://github.com/apache/phoenix/pull/1133#discussion_r702615359



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
##########
@@ -1121,46 +1124,55 @@ public PSchema resolveSchema(String schemaName) throws 
SQLException {
             return null;
         }
     }
-    
+
     private static class ProjectedTableColumnResolver extends 
MultiTableColumnResolver {
         private final boolean isLocalIndex;
+        // We must handle the local index data tables separately
+        protected final ListMultimap<String, TableRef> localIndexDataTableMap 
= ArrayListMultimap.<String, TableRef> create();
+        protected final List<TableRef> localIndexDataTables = new 
ArrayList<>();;

Review comment:
       thanks, done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> Bogus AmbiguousTableException in query with aliases on local indexed tables
> ---------------------------------------------------------------------------
>
>                 Key: PHOENIX-6365
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6365
>             Project: Phoenix
>          Issue Type: Task
>          Components: core
>    Affects Versions: 5.1.0, 4.16.0
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> Certain queries with aliases on tbales with local indexes throw 
> AmbiguousTableException



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to