From c832b08ea59faa35708550b42af6cc3cc60e7201 Mon Sep 17 00:00:00 2001 From: zhuqi-lucas <821684824@qq.com> Date: Thu, 2 Jan 2025 23:01:41 +0800 Subject: [PATCH] Fix test --- datafusion/core/src/datasource/file_format/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datafusion/core/src/datasource/file_format/mod.rs b/datafusion/core/src/datasource/file_format/mod.rs index 1ef4e6da75a5..a614e8ffe7c3 100644 --- a/datafusion/core/src/datasource/file_format/mod.rs +++ b/datafusion/core/src/datasource/file_format/mod.rs @@ -49,7 +49,6 @@ use datafusion_common::{internal_err, not_impl_err, GetExt}; use datafusion_expr::Expr; use datafusion_physical_expr::PhysicalExpr; -use crate::datasource::file_format::parquet::ParquetFormat; use async_trait::async_trait; use bytes::{Buf, Bytes}; use datafusion_physical_expr_common::sort_expr::LexRequirement; @@ -416,7 +415,7 @@ pub fn file_type_to_format( /// Check if the file format is parquet pub fn is_file_parquet_format(file_format: &Arc) -> bool { - file_format.get_ext() == ParquetFormat::default().get_ext() + file_format.get_ext() == "parquet" } /// Create a new field with the specified data type, copying the other