Skip to content

Commit

Permalink
spi-search:fix coalesce empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Oct 28, 2023
1 parent c160b4e commit a7de25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spi/spi-search/src/serv/pg/search_pg_item_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ pub async fn query_metrics(query_req: &SearchQueryMetricsReq, funs: &TardisFunsI
// (column name with fun, alias name, show_name, is dimension)
let mut sql_part_outer_select_infos = vec![];
for (column_name_with_fun, alias_name, show_name) in sql_part_group_infos {
sql_part_outer_select_infos.push((format!("COALESCE({},'empty')",column_name_with_fun), alias_name, show_name, true));
sql_part_outer_select_infos.push((format!("COALESCE({},'\"empty\"')",column_name_with_fun), alias_name, show_name, true));
}
for select in &query_req.select {
let select_column = if select.in_ext.unwrap_or(true) {
Expand Down

0 comments on commit a7de25e

Please sign in to comment.