Skip to content

Commit

Permalink
Rename create fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller committed Nov 17, 2024
1 parent 83d0d80 commit 581dba0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/polars-plan/src/dsl/function_expr/temporal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-time/src/chunkedarray/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-time/src/chunkedarray/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions crates/polars-time/src/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl PolarsReplaceDatetime for DatetimeChunked {
&microsecond.zip_with(&microsecond.is_not_null(), &(self.nanosecond() / 1000))?
};

let out = DatetimeChunked::from_parts(
let out = DatetimeChunked::new_from_parts(
year,
month,
day,
Expand Down Expand Up @@ -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)
}
}

0 comments on commit 581dba0

Please sign in to comment.