yuqi1129 edited a comment on pull request #1057:
URL: https://github.com/apache/calcite/pull/1057#issuecomment-660831795
@julianhyde
The cause of the problem is that, minus operator '-' is not right for type
BigDecimal when implementing unary minus function
For example
```
int a = 1;
int b = -a;
```
The above is Ok, however, problem exists in the code below
```
BigDecimal a = BigDecimal.valueOf("1");
BigDecimal b = -a; //wrong
BigDecimal c = a.nagate();//right
```
----------------------------------------------------------------
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]