From dbdd8c961d979c9efd0c73466db9bfc642cde8e1 Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Sat, 11 May 2024 10:11:28 +0800 Subject: [PATCH 1/2] fix: alias_name --- backend/spi/spi-stats/src/serv/pg/stats_pg_metric_serv.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/spi/spi-stats/src/serv/pg/stats_pg_metric_serv.rs b/backend/spi/spi-stats/src/serv/pg/stats_pg_metric_serv.rs index 7610b4c79..027ac01a2 100644 --- a/backend/spi/spi-stats/src/serv/pg/stats_pg_metric_serv.rs +++ b/backend/spi/spi-stats/src/serv/pg/stats_pg_metric_serv.rs @@ -762,7 +762,6 @@ fn package_groups( let mut node = Map::with_capacity(0); let dimension_key = curr_select_dimension_keys.first().ok_or_else(|| "curr_select_dimension_keys is empty")?; - // todo 下钻 上探 // let dimension_hierarchy = if let Some(stats_con_info) = conf_info.get(dimension_key.split(FUNCTION_SUFFIX_FLAG).next().unwrap_or("")) { // stats_con_info.dim_hierarchy.clone() @@ -774,7 +773,7 @@ fn package_groups( let mut order = Vec::new(); for record in result { let key = { - let key = record.get(dimension_key).unwrap_or(&json!(null)); + let key = record.get(dimension_key.to_lowercase()).unwrap_or(&json!(null)); match key { serde_json::Value::Null => "ROLLUP".to_string(), serde_json::Value::String(s) => s.clone(), From f613a8b8f7fb427b095453b79403ddd67ee3953d Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Sat, 11 May 2024 11:01:05 +0800 Subject: [PATCH 2/2] fix --- backend/supports/iam/src/basic/serv/iam_account_serv.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/supports/iam/src/basic/serv/iam_account_serv.rs b/backend/supports/iam/src/basic/serv/iam_account_serv.rs index 8319de26b..eb93f7b8e 100644 --- a/backend/supports/iam/src/basic/serv/iam_account_serv.rs +++ b/backend/supports/iam/src/basic/serv/iam_account_serv.rs @@ -228,6 +228,8 @@ impl RbumItemCrudOperation