From c037daba015ebad147c24c0e43c8c74da6e61f4a Mon Sep 17 00:00:00 2001 From: ljl <17743125563@163.com> Date: Mon, 29 Jul 2024 11:22:15 +0800 Subject: [PATCH] spi-stats:fix. --- backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs b/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs index 9e8952325..2f7c17866 100644 --- a/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs +++ b/backend/spi/spi-stats/src/serv/pg/stats_pg_record_serv.rs @@ -917,7 +917,7 @@ async fn fact_get_idempotent_record_raw( let table_name = package_table_name(&format!("stats_inst_fact_{fact_conf_key}"), ctx); let result = conn .query_one( - &format!("SELECT * FROM {table_name} WHERE and idempotent_id = $2 ORDER BY ct DESC"), + &format!("SELECT * FROM {table_name} WHERE idempotent_id = $2 ORDER BY ct DESC"), vec![Value::from(idempotent_id)], ) .await?;