diff --git a/src/query/functions/src/scalars/logics/and.rs b/src/query/functions/src/scalars/logics/and.rs index 0c50067c9954..ae2f656b724c 100644 --- a/src/query/functions/src/scalars/logics/and.rs +++ b/src/query/functions/src/scalars/logics/and.rs @@ -79,7 +79,7 @@ impl Function for LogicAndFiltersFunction { input_rows: usize, ) -> Result { if columns.len() == 1 { - return Ok(columns[1].column().clone()); + return Ok(columns[0].column().clone()); } let mut validity = None;