drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [05/17] git commit: DRILL-1120: Use DecimalScalePrecisionModFunction to compute scale & precision for mod function
Date Mon, 21 Jul 2014 02:46:27 GMT
DRILL-1120: Use DecimalScalePrecisionModFunction to compute scale & precision for mod function


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/1a963744
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/1a963744
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/1a963744

Branch: refs/heads/master
Commit: 1a9637441b0436bae7159324ad3177ddd17133b0
Parents: 5080585
Author: Mehant Baid <mehantr@gmail.com>
Authored: Thu Jul 10 23:58:39 2014 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Sun Jul 20 16:28:41 2014 -0700

----------------------------------------------------------------------
 .../src/main/codegen/templates/Decimal/DecimalFunctions.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a963744/exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java b/exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java
index 2118cab..41a1bb7 100644
--- a/exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java
+++ b/exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java
@@ -562,8 +562,8 @@ public class ${type.name}Functions {
 
         public void eval() {
             if (outputPrecision == Integer.MIN_VALUE) {
-                org.apache.drill.common.util.DecimalScalePrecisionDivideFunction resultScalePrec
=
-                new org.apache.drill.common.util.DecimalScalePrecisionDivideFunction((int)
left.precision, (int) left.scale, (int) right.precision, (int) right.scale);
+                org.apache.drill.common.util.DecimalScalePrecisionModFunction resultScalePrec
=
+                new org.apache.drill.common.util.DecimalScalePrecisionModFunction((int) left.precision,
(int) left.scale, (int) right.precision, (int) right.scale);
                 outputScale = resultScalePrec.getOutputScale();
                 outputPrecision = resultScalePrec.getOutputPrecision();
             }
@@ -1352,8 +1352,8 @@ public class ${type.name}Functions {
 
         public void eval() {
             if (outputPrecision == Integer.MIN_VALUE) {
-                org.apache.drill.common.util.DecimalScalePrecisionDivideFunction resultScalePrec
=
-                new org.apache.drill.common.util.DecimalScalePrecisionDivideFunction((int)
left.precision, (int) left.scale, (int) right.precision, (int) right.scale);
+                org.apache.drill.common.util.DecimalScalePrecisionModFunction resultScalePrec
=
+                new org.apache.drill.common.util.DecimalScalePrecisionModFunction((int) left.precision,
(int) left.scale, (int) right.precision, (int) right.scale);
                 outputScale = resultScalePrec.getOutputScale();
                 outputPrecision = resultScalePrec.getOutputPrecision();
             }


Mime
View raw message