Skip to content

Commit cab5ca6

Browse files
committed
chore(query): make copy into table support auto cast schema
1 parent c660853 commit cab5ca6

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/meta/app/src/principal/user_stage.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ pub enum StageFileCompression {
108108

109109
impl StageFileFormatType {
110110
pub fn has_inner_schema(&self) -> bool {
111-
match self {
112-
StageFileFormatType::Parquet => true,
113-
_ => false,
114-
}
111+
matches!(self, StageFileFormatType::Parquet)
115112
}
116113
}
117114

src/query/service/src/interpreters/interpreter_copy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use common_expression::DataField;
2727
use common_expression::DataSchema;
2828
use common_expression::DataSchemaRef;
2929
use common_expression::DataSchemaRefExt;
30-
use common_meta_app::principal::StageFileFormatType;
3130
use common_meta_app::principal::StageInfo;
3231
use common_meta_app::schema::TableCopiedFileInfo;
3332
use common_pipeline_core::processors::processor::ProcessorPtr;

0 commit comments

Comments
 (0)