mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-29 06:04:06 +00:00
test(query): keep raw frame regressions clippy clean
Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -3564,10 +3564,7 @@ mod tests {
|
||||
for chunk in &chunks {
|
||||
assert_eq!(host_a_key, chunk.primary_key.to_vec());
|
||||
}
|
||||
let times = chunks
|
||||
.iter()
|
||||
.flat_map(|chunk| timestamps(chunk))
|
||||
.collect::<Vec<_>>();
|
||||
let times = chunks.iter().flat_map(timestamps).collect::<Vec<_>>();
|
||||
let field_1 = chunks
|
||||
.iter()
|
||||
.flat_map(|chunk| (0..chunk.time.len()).map(move |row| float_at(chunk, 0, row)))
|
||||
|
||||
@@ -2088,8 +2088,11 @@ mod tests {
|
||||
chain.join(": ")
|
||||
}
|
||||
|
||||
/// Key, timestamps, float samples and finality from one fixture chunk.
|
||||
type FrameChunkSnapshot = (Vec<u8>, Vec<i64>, Vec<f64>, bool);
|
||||
|
||||
/// The complete payload of a raw-series stream: key, times, float samples and finality.
|
||||
fn frame_snapshot(chunks: &[RawSeriesChunk]) -> Vec<(Vec<u8>, Vec<i64>, Vec<f64>, bool)> {
|
||||
fn frame_snapshot(chunks: &[RawSeriesChunk]) -> Vec<FrameChunkSnapshot> {
|
||||
chunks
|
||||
.iter()
|
||||
.map(|chunk| {
|
||||
|
||||
Reference in New Issue
Block a user