diff --git a/crates/polars-plan/src/dsl/function_expr/temporal.rs b/crates/polars-plan/src/dsl/function_expr/temporal.rs index 23c59c6dc258..d5b53ab4f0b9 100644 --- a/crates/polars-plan/src/dsl/function_expr/temporal.rs +++ b/crates/polars-plan/src/dsl/function_expr/temporal.rs @@ -135,7 +135,7 @@ pub(super) fn datetime( } let ambiguous = _ambiguous.str()?; - let ca = DatetimeChunked::from_parts( + let ca = DatetimeChunked::new_from_parts( year, month, day, diff --git a/crates/polars-time/src/chunkedarray/date.rs b/crates/polars-time/src/chunkedarray/date.rs index 7f9b5bccc035..205382e08d47 100644 --- a/crates/polars-time/src/chunkedarray/date.rs +++ b/crates/polars-time/src/chunkedarray/date.rs @@ -78,7 +78,7 @@ pub trait DateMethods: AsDate { fn parse_from_str_slice(name: PlSmallStr, v: &[&str], fmt: &str) -> DateChunked; /// Construct a date ChunkedArray from individual time components. - fn from_parts( + fn new_from_parts( year: &Int32Chunked, month: &Int8Chunked, day: &Int8Chunked, diff --git a/crates/polars-time/src/chunkedarray/datetime.rs b/crates/polars-time/src/chunkedarray/datetime.rs index 05407e4c428e..3a5bea3308ef 100644 --- a/crates/polars-time/src/chunkedarray/datetime.rs +++ b/crates/polars-time/src/chunkedarray/datetime.rs @@ -154,7 +154,7 @@ pub trait DatetimeMethods: AsDatetime { /// Construct a datetime ChunkedArray from individual time components. #[allow(clippy::too_many_arguments)] - fn from_parts( + fn new_from_parts( year: &Int32Chunked, month: &Int8Chunked, day: &Int8Chunked, diff --git a/crates/polars-time/src/replace.rs b/crates/polars-time/src/replace.rs index e54fcdf588e8..14ae6059857f 100644 --- a/crates/polars-time/src/replace.rs +++ b/crates/polars-time/src/replace.rs @@ -123,7 +123,7 @@ impl PolarsReplaceDatetime for DatetimeChunked { µsecond.zip_with(µsecond.is_not_null(), &(self.nanosecond() / 1000))? }; - let out = DatetimeChunked::from_parts( + let out = DatetimeChunked::new_from_parts( year, month, day, @@ -181,7 +181,7 @@ impl PolarsReplaceDate for DateChunked { &day.zip_with(&day.is_not_null(), &self.day())? }; - let out = DateChunked::from_parts(year, month, day, self.name().clone())?; + let out = DateChunked::new_from_parts(year, month, day, self.name().clone())?; Ok(out) } }