Skip to content

Commit e0923e2

Browse files
committed
NativeType from &DataType
1 parent 117f23b commit e0923e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datafusion/common/src/types/native.rs

+6
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,9 @@ impl From<DataType> for NativeType {
391391
}
392392
}
393393
}
394+
395+
impl From<&DataType> for NativeType {
396+
fn from(value: &DataType) -> Self {
397+
value.clone().into()
398+
}
399+
}

0 commit comments

Comments
 (0)