richardantal commented on code in PR #2043:
URL: https://github.com/apache/phoenix/pull/2043#discussion_r1890412425


##########
phoenix-core-client/src/main/java/org/apache/phoenix/compile/JoinCompiler.java:
##########
@@ -863,7 +862,9 @@ public void pruneSubselectAliasedNodes() throws 
SQLException {
                  * The columns are pruned, so {@link ColumnResolver} should be 
refreshed.
                  */
                 DerivedTableNode newDerivedTableNode =
-                        NODE_FACTORY.derivedTable(this.tableNode.getAlias(), 
newSubselectStatement);
+                        NODE_FACTORY.derivedTable(SchemaUtil.ESCAPE_CHARACTER
+                                + this.tableNode.getAlias()

Review Comment:
   You can use the SchemaUtil.getEscapedArgument function but it is fine



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

Reply via email to