arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject [2/4] arrow git commit: ARROW-18: Fix decimal precision and scale in MapWriters
Date Wed, 09 Mar 2016 00:26:51 GMT
ARROW-18: Fix decimal precision and scale in MapWriters


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/243ed4e9
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/243ed4e9
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/243ed4e9

Branch: refs/heads/master
Commit: 243ed4e91d5ed922b205f7ac5fa8f9f821a07fbb
Parents: 1650026
Author: Steven Phillips <steven@dremio.com>
Authored: Mon Feb 29 19:33:44 2016 -0800
Committer: Steven Phillips <steven@dremio.com>
Committed: Tue Mar 8 16:09:19 2016 -0800

----------------------------------------------------------------------
 java/vector/src/main/codegen/templates/MapWriters.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/243ed4e9/java/vector/src/main/codegen/templates/MapWriters.java
----------------------------------------------------------------------
diff --git a/java/vector/src/main/codegen/templates/MapWriters.java b/java/vector/src/main/codegen/templates/MapWriters.java
index 7001367..42f3982 100644
--- a/java/vector/src/main/codegen/templates/MapWriters.java
+++ b/java/vector/src/main/codegen/templates/MapWriters.java
@@ -206,7 +206,7 @@ public class ${mode}MapWriter extends AbstractFieldWriter {
   }
 
   public ${minor.class}Writer ${lowerName}(String name, int scale, int precision) {
-    final MajorType ${upperName}_TYPE = new MajorType(MinorType.${upperName}, DataMode.OPTIONAL,
scale, precision, null, null);
+    final MajorType ${upperName}_TYPE = new MajorType(MinorType.${upperName}, DataMode.OPTIONAL,
precision, scale, 0, null);
   <#else>
   private static final MajorType ${upperName}_TYPE = Types.optional(MinorType.${upperName});
   @Override


Mime
View raw message