Skip to content

Commit

Permalink
Make equals_datatype method public, enabling other modules (#1838)
Browse files Browse the repository at this point in the history
* we'd like to use this function in datafusion
  • Loading branch information
nl5887 authored Jun 10, 2022
1 parent 8d787d9 commit c6fac6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow/src/datatypes/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl DataType {

/// Compares the datatype with another, ignoring nested field names
/// and metadata.
pub(crate) fn equals_datatype(&self, other: &DataType) -> bool {
pub fn equals_datatype(&self, other: &DataType) -> bool {
match (&self, other) {
(DataType::List(a), DataType::List(b))
| (DataType::LargeList(a), DataType::LargeList(b)) => {
Expand Down

0 comments on commit c6fac6d

Please sign in to comment.