You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/10/31 01:03:48 UTC

[GitHub] [pinot] 61yao opened a new pull request, #9693: [multi-stage] [cleanup] Clean up PinotOperatorTable

61yao opened a new pull request, #9693:
URL: https://github.com/apache/pinot/pull/9693

   Add some comments and merge the registration for SqlFunction and SqlOperator. 


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang closed pull request #9693: [multi-stage] [cleanup] Clean up PinotOperatorTable

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang closed pull request #9693: [multi-stage] [cleanup] Clean up PinotOperatorTable
URL: https://github.com/apache/pinot/pull/9693


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] walterddr commented on a diff in pull request #9693: [multi-stage] [cleanup] Clean up PinotOperatorTable

Posted by GitBox <gi...@apache.org>.
walterddr commented on code in PR #9693:
URL: https://github.com/apache/pinot/pull/9693#discussion_r1011010698


##########
pinot-query-planner/src/main/java/org/apache/calcite/sql/fun/PinotOperatorTable.java:
##########
@@ -87,13 +86,6 @@ public final void initNoDuplicate() {
     }
   }
 
-  private boolean notRegistered(SqlFunction op) {
-    List<SqlOperator> operatorList = new ArrayList<>();
-    lookupOperatorOverloads(op.getNameAsId(), op.getFunctionType(), op.getSyntax(), operatorList,
-        SqlNameMatchers.withCaseSensitive(false));
-    return operatorList.size() == 0;
-  }

Review Comment:
   no please do not remove this registration check. passing `op.getFunctionType()` is not the same as passing directly `null`
   
   it is being ignored by calcite right now but it is not guarantee not to be used in the future. deviating from calcite behavior could cause debuggability issues in the future (as we are basically overriding a behavior on our own)



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org