gortiz commented on code in PR #9927:
URL: https://github.com/apache/pinot/pull/9927#discussion_r1041874334


##########
pinot-common/src/main/java/org/apache/pinot/common/request/context/ExpressionContext.java:
##########
@@ -104,6 +104,19 @@ public void getColumns(Set<String> columns) {
     }
   }
 
+  public <T> T visit(ExpressionContextVisitor<T> visitor) {

Review Comment:
   It is a little bit strange to me calling something a visitor without 
implementing the GoF visitor pattern, but I guess the problem here is the 
ExpressionContext class itself, which instead of being a sealed class with one 
subclass for each type, it is a single class with nullable attributes so... the 
classical GoF pattern cannot be applied as we use to.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to