Skip to content

Commit fdac739

Browse files
author
ljl
committed
spi-search:fix select.
1 parent 1e1fec2 commit fdac739

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spi/spi-search/src/serv/pg/search_pg_item_serv.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ pub async fn query_metrics(query_req: &SearchQueryMetricsReq, funs: &TardisFunsI
680680
if let Some(q) = &query_req.query.q {
681681
let q = q
682682
.chars()
683-
// Fixed like `syntax error in tsquery: "吴 林"`
684683
.filter(|c| !c.is_whitespace())
685684
.map(|c| match c {
686685
'|' => '|',
@@ -1181,11 +1180,12 @@ pub async fn query_metrics(query_req: &SearchQueryMetricsReq, funs: &TardisFunsI
11811180
sql_part_outer_select_infos.push((format!("COALESCE({},'\"empty\"')", column_name_with_fun), alias_name, show_name, true));
11821181
}
11831182
for select in &query_req.select {
1184-
let select_column = if select.in_ext.unwrap_or(true) {
1185-
format!("_.ext ->> '{}'", &select.code)
1186-
} else {
1187-
format!("_.{}", &select.code)
1188-
};
1183+
// let select_column = if select.in_ext.unwrap_or(true) {
1184+
// format!("_.ext ->> '{}'", &select.code)
1185+
// } else {
1186+
// format!("_.{}", &select.code)
1187+
// };
1188+
let select_column = format!("_.{}", &select.code);
11891189
let column_name_with_fun = select.data_type.to_pg_select(&select_column, &select.fun);
11901190
let alias_name = format!(
11911191
"{}{}{FUNCTION_SUFFIX_FLAG}{}",

0 commit comments

Comments
 (0)