We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ba91d commit d1b7080Copy full SHA for d1b7080
src/common/function/src/aggrs/vector/avg.rs
@@ -131,6 +131,11 @@ impl VectorAvg {
131
let dims = vectors[0].len();
132
let mut sum = DVector::zeros(dims);
133
for v in vectors {
134
+ if v.len() != dims {
135
+ return Err(datafusion_common::DataFusionError::Execution(
136
+ "vectors length not match: VEC_AVG".to_string(),
137
+ ));
138
+ }
139
let v_view = DVectorView::from_slice(&v, dims);
140
sum += &v_view;
141
}
0 commit comments