mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 09:50:40 +00:00
Update src/servers/src/http.rs
Co-authored-by: LFC <bayinamine@gmail.com>
This commit is contained in:
@@ -72,11 +72,7 @@ impl HttpRecordsOutput {
|
||||
}
|
||||
|
||||
pub fn num_cols(&self) -> usize {
|
||||
if let Some(schema) = &self.schema {
|
||||
schema.column_schemas.len()
|
||||
} else {
|
||||
0
|
||||
}
|
||||
self.schema.map(|x| x.column_schemas.len()).unwrap_or(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user