This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/main by this push:
new 93671df KYLIN-5086, fix query pushdown with agg func without alias
get an empty appearance
93671df is described below
commit 93671dfb0a2d3d21025e1dbf1e872daf0e217cc5
Author: Mukvin <[email protected]>
AuthorDate: Thu Sep 9 10:33:23 2021 +0800
KYLIN-5086, fix query pushdown with agg func without alias get an empty
appearance
---
webapp/app/js/directives/ui-grid.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/webapp/app/js/directives/ui-grid.js
b/webapp/app/js/directives/ui-grid.js
index 86a9f72..27c92f5 100644
--- a/webapp/app/js/directives/ui-grid.js
+++ b/webapp/app/js/directives/ui-grid.js
@@ -11454,7 +11454,13 @@ module.service('gridUtil', ['$log', '$window',
'$document', '$http', '$templateC
var parts = path.split(uiGridConstants.DOT_REGEXP);
var preparsed = [parts.shift()]; // first item must be var notation,
thus skip
angular.forEach(parts, function (part) {
- preparsed.push(part.replace(uiGridConstants.FUNC_REGEXP, '\']$1'));
+ var specialFun = ['COUNT', 'SUM', 'MIN', 'MAX', 'AVG'];
+ var parttemp = part.replace(uiGridConstants.FUNC_REGEXP, '');
+ if (specialFun.indexOf(parttemp) > -1) {
+ preparsed.push(part + '\']');
+ } else {
+ preparsed.push(part.replace(uiGridConstants.FUNC_REGEXP, '\']$1'));
+ }
});
return preparsed.join('[\'');
}