You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2019/05/10 09:25:14 UTC

[kylin] branch 2.6.x updated: KYLIN-3968 Customized precision doesn't work in web

This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/2.6.x by this push:
     new 20b3721  KYLIN-3968 Customized precision doesn't work in web
20b3721 is described below

commit 20b3721a88e52df447ca640236526d545145da11
Author: majie <ma...@163.com>
AuthorDate: Sun Apr 28 18:53:55 2019 +0800

    KYLIN-3968 Customized precision doesn't work in web
---
 webapp/app/js/controllers/cubeMeasures.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webapp/app/js/controllers/cubeMeasures.js b/webapp/app/js/controllers/cubeMeasures.js
index fb5610f..8063ab0 100644
--- a/webapp/app/js/controllers/cubeMeasures.js
+++ b/webapp/app/js/controllers/cubeMeasures.js
@@ -466,7 +466,7 @@ KylinApp.controller('CubeMeasuresCtrl', function ($scope, $modal,MetaModel,cubes
          if(colType.indexOf('decimal') != -1) {
             var returnRegex = new RegExp('(\\w+)(?:\\((\\w+?)(?:\\,(\\w+?))?\\))?');
             var returnValue = returnRegex.exec(colType);
-            var precision = 19;
+            var precision = returnValue[2] || 0;
             var scale = returnValue[3] || 0;
             return 'decimal(' + precision + ',' + scale + ')';
           }else{