-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: rewrite pl$date_range()
and add pl$datetime_range()
#950
Conversation
pl$date_range()
and add pl$datetime_range()
pl$date_range()
and add pl$datetime_range()
pl$date_range()
and add pl$datetime_range()
@etiennebacher Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have a question on whether passing datetimes in pl$date_range()
should be deprecated (as is in this PR) or removed.
#' Only takes effect if the output column is of type [Datetime][DataType_Datetime]. | ||
#' @return A [Expr][Expr_class] of data type Date or [Datetime][DataType_Datetime] | ||
#' @section Interval: | ||
#' `interval` is created according to the following string language: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we inherit that from another part of the docs? I think there's the same list elsewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we inherit that from another part of the docs? I think there's the same list elsewhere
Sorry, but I don't understand what you want to say. This section is inherited by pl_datetime_range
and there are no duplicates.
I don't think refactoring other functions' documentation is in the scope of this PR. (I don't want to make this PR huge anymore)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My point was that Expr_rolling
has almost the same thing in @details
(but the first sentence is different so we can't just inherit it here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will update the docs in #958
My understanding is that passing a Datetime is not deprecated, but rather that a breaking change will be introduced in the future that will return a Date even if a Datetime is passed. Python has built-in logic to issue a warning when a Datetime is returned, but I haven't implemented it at the moment because it's cumbersome to copy. |
Returning a Datetime in |
We can't make this breaking change here because no changes have been introduced to the upstream Rust side. |
I have added warnings. |
Although I wrote that breaking changes cannot be made now, the However, even if we do that, we can't delete the the warnings, so I think it's fine as is now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.