DonnyZone commented on a change in pull request #1057:
URL: https://github.com/apache/calcite/pull/1057#discussion_r456994481
##########
File path: core/src/test/java/org/apache/calcite/test/ReflectiveSchemaTest.java
##########
@@ -1070,4 +1070,15 @@ public IntHolder(int value) {
+ "from \"s\".\"primesCustomBoxed\"")
.returnsUnordered("EXPR$0=false\nEXPR$0=false\nEXPR$0=true");
}
+
+ @Test public void testDecimalNegate() {
+ final CalciteAssert.AssertThat with =
+ CalciteAssert.that().withSchema("s", CATCHALL);
+ with.query("select - \"bigDecimal\" from \"s\".\"everyTypes\"")
+ .returnsUnordered(
+ "EXPR$0=0",
+ "EXPR$0=null");
+
+ with.query("select - \"bigDecimal\" from
\"s\".\"everyTypes\"").planContains(".decimalNegate(");
Review comment:
We can combine them as
```
with.query(...)
.planContains(...)
.returns...
```
----------------------------------------------------------------
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]