julianhyde commented on pull request #1057:
URL: https://github.com/apache/calcite/pull/1057#issuecomment-661400067


   bq. BigDecimal c = a.nagate();//right
   
   @yuqi1129 No, not quite right. `nagate` should be `negate`.
   
   bq. Yes, we can implement in RexImpTable directly.
   
   Half right. Yes, you can remove the method in `SqlFunctions`. But you still 
need an entry in `BuiltInMethod`. You should add 
`BuiltInMethod.BIG_DECIMAL_NEGATE(BigDecimal.class, "negate")` and use that 
entry when generating code.


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


Reply via email to