mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-18 16:54:09 +00:00
Merge branch 'fix/narthex-frame-source-followup-20261016' into fix/narthex-9607-9611-batching-20261016
This commit is contained in:
+722
-242
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -389,13 +389,15 @@ impl Samples {
|
||||
SampleStorage::Mixed(mixed) => Some(&mixed.histograms.batch),
|
||||
SampleStorage::Float(_) | SampleStorage::Chunks(_, _) => None,
|
||||
});
|
||||
let mut first_data = None;
|
||||
let shared_batch = histogram_batches.next().filter(|first| {
|
||||
histogram_batches.all(|batch| {
|
||||
Arc::ptr_eq(first, batch)
|
||||
|| first
|
||||
.as_arrow()
|
||||
.to_data()
|
||||
.ptr_eq(&batch.as_arrow().to_data())
|
||||
if Arc::ptr_eq(first, batch) {
|
||||
return true;
|
||||
}
|
||||
first_data
|
||||
.get_or_insert_with(|| first.as_arrow().to_data())
|
||||
.ptr_eq(&batch.as_arrow().to_data())
|
||||
})
|
||||
});
|
||||
let needs_float = chunks.iter().any(|chunk| {
|
||||
|
||||
Reference in New Issue
Block a user