Skip to content

Commit

Permalink
NativeType from &DataType
Browse files Browse the repository at this point in the history
  • Loading branch information
notfilippo committed Oct 26, 2024
1 parent 117f23b commit e0923e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datafusion/common/src/types/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,9 @@ impl From<DataType> for NativeType {
}
}
}

impl From<&DataType> for NativeType {
fn from(value: &DataType) -> Self {
value.clone().into()
}
}

0 comments on commit e0923e2

Please sign in to comment.