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

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

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



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java
##########
@@ -893,15 +893,14 @@ public Void visit(NamedTableNode tableNode) throws 
SQLException {
             TableRef tableRef = createTableRef(connectionSchemaName, 
tableNode, true, false);
             PTable theTable = tableRef.getTable();
 
+            String name = theTable.getName().getString();

Review comment:
       nit: maybe extract this logic to a private helper function so it doesn't 
have to be duplicated in two places




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

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
>            Reporter: 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