stoty commented on a change in pull request #150:
URL: https://github.com/apache/calcite-avatica/pull/150#discussion_r697162832



##########
File path: 
core/src/main/java/org/apache/calcite/avatica/util/AbstractCursor.java
##########
@@ -722,13 +701,21 @@ protected Number getNumber() throws SQLException {
       return (Number) super.getObject();
     }
 
+    //FIXME There are several problems with this, the code below simply 
implements
+    //a previous behaviour codified by the Calcite test suite.
+    //
+    // 1. It interprets a scale of 0 as a NOOP parameter, it should in fact 
drop all fractionals
+    // 2. It uses RoundingMode.UNNECESSARY. All other Accessors use 
RoundingMode.DOWN, and
+    //    there is nothing in the specs that suggests that it should behave 
differently

Review comment:
       Thanks, I'll change that.




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


Reply via email to