sohami commented on a change in pull request #1451: DRILL-6710: Drill C++
Client does not handle scale = 0 properly for d…
URL: https://github.com/apache/drill/pull/1451#discussion_r213740172
##########
File path:
exec/java-exec/src/test/java/org/apache/drill/TestFunctionsQuery.java
##########
@@ -394,17 +398,30 @@ public void testLiteralCastToTINYINTYieldsTINYINT()
throws Exception {
@Test
- public void testDecimalMultiplicationOverflowHandling() throws Exception {
+ public void testDecimalMultiplicationOverflowNegativeScale() throws
Exception {
+ String query = "select cast('1000000000000000001.000000000000000000' as
decimal(38, 18)) * " +
+ "cast('0.999999999999999999' as decimal(38, 18)) as DEC38_1 from
cp.`employee.json` where employee_id = 1";
Review comment:
Removed from clause from here and other test cases.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services