Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Mar 7, 2024
1 parent 79e4642 commit da7d308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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};
use datafusion_common::{internal_err, DataFusionError, internal_datafusion_err};
use datafusion_expr::{ColumnarValue, ScalarUDFImpl, Signature, Volatility};
use rayon::prelude::*;
use std::any::Any;
Expand Down Expand Up @@ -111,7 +111,7 @@ fn intersects<O: OffsetSizeTrait, F: OffsetSizeTrait>(
(Some(geom0), Some(geom1)) => {
let result = geom0
.intersects(&geom1)
.map_err(|e| internal_err!("Failed to do intersects, error: {}", e))?;
.map_err(|e| internal_datafusion_err!("Failed to do intersects, error: {}", e))?;
Ok(Some(result))
}
_ => Ok(None),
Expand Down

0 comments on commit da7d308

Please sign in to comment.