refactor: remove reduntant .compat() (#2949)

* refactor: remove reduntant `.compat()`

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* remove dep

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

---------

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
Zhenchi
2023-12-18 18:36:45 +08:00
committed by GitHub
parent 029ff2f1e3
commit d339191e29
5 changed files with 3 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ testing = []
[dependencies]
api.workspace = true
async-compat = "0.2"
async-trait = "0.1"
auth.workspace = true
catalog.workspace = true

View File

@@ -16,7 +16,6 @@ use std::collections::HashMap;
use std::future::Future;
use std::sync::Arc;
use async_compat::CompatExt;
use common_base::readable_size::ReadableSize;
use common_datasource::file_format::csv::{CsvConfigBuilder, CsvOpener};
use common_datasource::file_format::json::JsonOpener;
@@ -205,8 +204,7 @@ impl StatementExecutor {
.reader(path)
.await
.context(error::ReadObjectSnafu { path })?;
let buf_reader = BufReader::new(reader.compat());
let buf_reader = BufReader::new(reader);
let builder = ParquetRecordBatchStreamBuilder::new(buf_reader)
.await