We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23aa689 commit 15da486Copy full SHA for 15da486
1 file changed
datafusion/common/src/stats.rs
@@ -320,10 +320,7 @@ impl Precision<ScalarValue> {
320
321
impl<T: Debug + Clone + PartialEq + Eq + PartialOrd> From<Option<T>> for Precision<T> {
322
fn from(option: Option<T>) -> Self {
323
- match option {
324
- Some(value) => Precision::Exact(value),
325
- None => Precision::Absent,
326
- }
+ option.map_or(Precision::Absent, Precision::Exact)
327
}
328
329
0 commit comments