drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [16/17] git commit: DRILL-1213: Use scale when deriving row type for views.
Date Tue, 29 Jul 2014 15:38:28 GMT
DRILL-1213: Use scale when deriving row type for views.


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

Branch: refs/heads/master
Commit: 13560cbfbc82fb876d3b2418535907990053f7ea
Parents: 5b73c21
Author: Mehant Baid <mehantr@gmail.com>
Authored: Mon Jul 28 15:00:24 2014 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Tue Jul 29 08:36:27 2014 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/drill/exec/dotdrill/View.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/13560cbf/exec/java-exec/src/main/java/org/apache/drill/exec/dotdrill/View.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/dotdrill/View.java b/exec/java-exec/src/main/java/org/apache/drill/exec/dotdrill/View.java
index ef55d68..7965e02 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/dotdrill/View.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/dotdrill/View.java
@@ -121,7 +121,7 @@ public class View {
       names.add(field.name);
       if(field.precision == null && field.scale == null){
         types.add(factory.createSqlType(field.type));
-      }else if(field.precision != null){
+      }else if(field.precision != null && field.scale == null){
         types.add(factory.createSqlType(field.type, field.precision));
       }else{
         types.add(factory.createSqlType(field.type, field.precision, field.scale));


Mime
View raw message