nielspardon commented on code in PR #4481:
URL: https://github.com/apache/calcite/pull/4481#discussion_r2237948301


##########
core/src/main/java/org/apache/calcite/rel/rel2sql/SqlImplementor.java:
##########
@@ -1897,7 +1897,7 @@ private Builder builder(RelNode rel, Set<Clause> clauses) 
{
       if (!selectList.equals(SqlNodeList.SINGLETON_STAR)) {
         final boolean aliasRef = expectedClauses.contains(Clause.HAVING)
             && dialect.getConformance().isHavingAlias();
-        newContext = new Context(dialect, selectList.size()) {
+        newContext = new BaseContext(dialect, selectList.size()) {

Review Comment:
   `Context` is also an abstract class. what is happening here is that the 
previous author decided to instantiate a new instance of `Context` by 
implementing the abstract methods on the spot which is the syntax you are 
seeing here: `new Context(dialect, selectList.size()) {}` (note the curly 
braces)



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