mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 11:20:38 +00:00
feat: support write data via influxdb line protocol in frontend (#280)
* feat: support influxdb line protocol write
This commit is contained in:
@@ -67,12 +67,10 @@ pub fn insertion_expr_to_request(
|
||||
}
|
||||
|
||||
fn insert_batches(bytes_vec: Vec<Vec<u8>>) -> Result<Vec<InsertBatch>> {
|
||||
let mut insert_batches = Vec::with_capacity(bytes_vec.len());
|
||||
|
||||
for bytes in bytes_vec {
|
||||
insert_batches.push(bytes.deref().try_into().context(DecodeInsertSnafu)?);
|
||||
}
|
||||
Ok(insert_batches)
|
||||
bytes_vec
|
||||
.iter()
|
||||
.map(|bytes| bytes.deref().try_into().context(DecodeInsertSnafu))
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn add_values_to_builder(
|
||||
|
||||
@@ -129,7 +129,6 @@ macro_rules! convert_arrow_array_to_grpc_vals {
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
pub fn values(arrays: &[Arc<dyn Array>]) -> Result<Values> {
|
||||
|
||||
Reference in New Issue
Block a user