Skip to content

Commit 36ea227

Browse files
committed
array_formatter_factory.rs into datafusion-expr
1 parent c2c67d6 commit 36ea227

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

datafusion/core/src/dataframe/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ use datafusion_functions_aggregate::expr_fn::{
6969
avg, count, max, median, min, stddev, sum,
7070
};
7171

72-
use crate::extension_types::DFArrayFormatterFactory;
7372
use async_trait::async_trait;
7473
use datafusion_catalog::Session;
74+
use datafusion_expr::extension_types::DFArrayFormatterFactory;
7575

7676
/// Contains options that control how data is
7777
/// written out from a DataFrame

datafusion/core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,6 @@ pub mod variable {
894894
#[cfg(not(target_arch = "wasm32"))]
895895
pub mod test;
896896

897-
mod extension_types;
898897
mod schema_equivalence;
899898
pub mod test_util;
900899

datafusion/core/tests/extension_types/pretty_printing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async fn create_test_table() -> Result<DataFrame> {
5959
}
6060

6161
#[tokio::test]
62-
async fn test_pretty_print_logical_plan() -> Result<()> {
62+
async fn test_pretty_print_extension_type_formatter() -> Result<()> {
6363
let result = create_test_table().await?.to_string().await?;
6464

6565
assert_snapshot!(

datafusion/core/src/extension_types/array_formatter_factory.rs renamed to datafusion/expr/src/extension_types/array_formatter_factory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
use crate::registry::ExtensionTypeRegistryRef;
1819
use arrow::array::Array;
1920
use arrow::util::display::{ArrayFormatter, ArrayFormatterFactory, FormatOptions};
2021
use arrow_schema::{ArrowError, Field};
21-
use datafusion_expr::registry::ExtensionTypeRegistryRef;
2222

2323
/// A factory for creating [`ArrayFormatter`]s that checks whether a registered extension type can
2424
/// format a given array based on its metadata.
File renamed without changes.

datafusion/expr/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub mod expr;
5252
pub mod expr_fn;
5353
pub mod expr_rewriter;
5454
pub mod expr_schema;
55+
pub mod extension_types;
5556
pub mod function;
5657
pub mod select_expr;
5758
pub mod groups_accumulator {

0 commit comments

Comments
 (0)