Skip to content

Commit 97261c7

Browse files
committed
fix doc
1 parent 83e37d6 commit 97261c7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

datafusion/common/src/metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use hashbrown::HashMap;
3131
/// # Example: Create [`FieldMetadata`] from a [`Field`]
3232
/// ```
3333
/// # use std::collections::HashMap;
34-
/// # use datafusion_expr::expr::FieldMetadata;
34+
/// # use datafusion_common::metadata::FieldMetadata;
3535
/// # use arrow::datatypes::{Field, DataType};
3636
/// # let field = Field::new("c1", DataType::Int32, true)
3737
/// # .with_metadata(HashMap::from([("foo".to_string(), "bar".to_string())]));
@@ -43,7 +43,7 @@ use hashbrown::HashMap;
4343
///
4444
/// # Example: Update a [`Field`] with [`FieldMetadata`]
4545
/// ```
46-
/// # use datafusion_expr::expr::FieldMetadata;
46+
/// # use datafusion_common::metadata::FieldMetadata;
4747
/// # use arrow::datatypes::{Field, DataType};
4848
/// # let field = Field::new("c1", DataType::Int32, true);
4949
/// # let metadata = FieldMetadata::new_from_field(&field);
@@ -96,7 +96,7 @@ impl FieldMetadata {
9696
///
9797
/// # Example usage
9898
/// ```rust
99-
/// use datafusion_expr::expr::FieldMetadata;
99+
/// use datafusion_common::metadata::FieldMetadata;
100100
/// use std::collections::BTreeMap;
101101
///
102102
/// // Create metadata for a literal expression

datafusion/expr/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ impl Expr {
16231623
/// ```
16241624
/// # use datafusion_expr::col;
16251625
/// # use std::collections::HashMap;
1626-
/// # use datafusion_expr::expr::FieldMetadata;
1626+
/// # use datafusion_common::metadata::FieldMetadata;
16271627
/// let metadata = HashMap::from([("key".to_string(), "value".to_string())]);
16281628
/// let metadata = FieldMetadata::from(metadata);
16291629
/// let expr = col("foo").alias_with_metadata("bar", Some(metadata));
@@ -1655,7 +1655,7 @@ impl Expr {
16551655
/// ```
16561656
/// # use datafusion_expr::col;
16571657
/// # use std::collections::HashMap;
1658-
/// # use datafusion_expr::expr::FieldMetadata;
1658+
/// # use datafusion_common::metadata::FieldMetadata;
16591659
/// let metadata = HashMap::from([("key".to_string(), "value".to_string())]);
16601660
/// let metadata = FieldMetadata::from(metadata);
16611661
/// let expr = col("foo").alias_qualified_with_metadata(Some("tbl"), "bar", Some(metadata));

0 commit comments

Comments
 (0)