diff options
author | Mehant Baid <mehantr@gmail.com> | 2014-07-02 00:13:38 -0700 |
---|---|---|
committer | Aditya Kishore <aditya@maprtech.com> | 2014-07-02 23:00:27 -0700 |
commit | 67c303cb96103afa790d73d740a544917d67757e (patch) | |
tree | 8f01c72fabee97ee481c8509d85e7b9366c7fc73 /exec/jdbc | |
parent | 85b8ceffe7ca5b976acc25b7c11c0c288110e7bf (diff) |
DRILL-794: Fix IOB while performing decimal subtraction
Diffstat (limited to 'exec/jdbc')
-rw-r--r-- | exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestFunctionsQuery.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestFunctionsQuery.java b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestFunctionsQuery.java index 1e5052a2d..1189ac573 100644 --- a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestFunctionsQuery.java +++ b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestFunctionsQuery.java @@ -490,7 +490,7 @@ public class TestFunctionsQuery { @Test public void testDecimalAddConstant() throws Exception { - String query = "select (cast('-1' as decimal(38, 3)) + cast (employee_id as decimal(38, 3))) as CNT " + + String query = "select (cast('-1' as decimal(37, 3)) + cast (employee_id as decimal(37, 3))) as CNT " + "from cp.`employee.json` where employee_id <= 4"; JdbcAssert.withNoDefaultSchema() @@ -503,7 +503,7 @@ public class TestFunctionsQuery { @Test public void testDecimalAddIntConstant() throws Exception { - String query = "select 1 + cast(employee_id as decimal(9, 3)) as DEC_9 , 1 + cast(employee_id as decimal(38, 5)) as DEC_38 " + + String query = "select 1 + cast(employee_id as decimal(9, 3)) as DEC_9 , 1 + cast(employee_id as decimal(37, 5)) as DEC_38 " + "from cp.`employee.json` where employee_id <= 2"; JdbcAssert.withNoDefaultSchema() |