mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 17:30:41 +00:00
Update src/servers/src/http.rs
Co-authored-by: LFC <bayinamine@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ impl TryFrom<Vec<RecordBatch>> for HttpRecordsOutput {
|
||||
.collect(),
|
||||
};
|
||||
|
||||
let mut rows = Vec::new();
|
||||
let mut rows = Vec::with_capacity(recordbatches.iter().map(|r| r.rows()).sum::<usize>());
|
||||
|
||||
for recordbatch in recordbatches {
|
||||
for row in recordbatch.rows() {
|
||||
|
||||
Reference in New Issue
Block a user