mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 16:48:58 +00:00
@@ -32,6 +32,12 @@ pub enum QueryError {
|
||||
|
||||
#[snafu(display("{}", source))]
|
||||
Parser { source: ParserError },
|
||||
|
||||
#[snafu(display("Udf not exists, name:{}.", name))]
|
||||
FunctionNotExists { name: String },
|
||||
|
||||
#[snafu(display("Udf already exists, name:{}.", name))]
|
||||
FunctionExists { name: String },
|
||||
}
|
||||
|
||||
impl From<DataFusionError> for QueryError {
|
||||
|
||||
@@ -79,7 +79,7 @@ impl ObjectStore for EcObjectStore {
|
||||
let stream = stream::unfold(reader.stream, |mut blob| async move {
|
||||
match blob.next().await {
|
||||
Some(Ok(chunk)) => {
|
||||
let bytes = Bytes::from(chunk);
|
||||
let bytes = chunk;
|
||||
Some((Ok(bytes), blob))
|
||||
}
|
||||
_ => None,
|
||||
|
||||
Reference in New Issue
Block a user