Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Mar 7, 2024
1 parent da7d308 commit dd5e81e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/function/intersects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::DFResult;
use arrow_array::cast::AsArray;
use arrow_array::{Array, BooleanArray, GenericBinaryArray, OffsetSizeTrait};
use arrow_schema::DataType;
use datafusion_common::{internal_err, DataFusionError, internal_datafusion_err};
use datafusion_common::{internal_datafusion_err, internal_err, DataFusionError};
use datafusion_expr::{ColumnarValue, ScalarUDFImpl, Signature, Volatility};
use rayon::prelude::*;
use std::any::Any;
Expand Down Expand Up @@ -109,9 +109,9 @@ fn intersects<O: OffsetSizeTrait, F: OffsetSizeTrait>(
use geos::Geom;
match (arr0.geos_value(geom_index)?, arr1.geos_value(geom_index)?) {
(Some(geom0), Some(geom1)) => {
let result = geom0
.intersects(&geom1)
.map_err(|e| internal_datafusion_err!("Failed to do intersects, error: {}", e))?;
let result = geom0.intersects(&geom1).map_err(|e| {
internal_datafusion_err!("Failed to do intersects, error: {}", e)
})?;
Ok(Some(result))
}
_ => Ok(None),
Expand Down

0 comments on commit dd5e81e

Please sign in to comment.