-
Notifications
You must be signed in to change notification settings - Fork 166
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
Remove deprecated datetime
functions
#1134
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM!
@@ -3915,7 +3915,7 @@ def snapshots(self) -> "pa.Table": | |||
additional_properties = None | |||
|
|||
snapshots.append({ | |||
"committed_at": datetime.utcfromtimestamp(snapshot.timestamp_ms / 1000.0), | |||
"committed_at": datetime.fromtimestamp(snapshot.timestamp_ms / 1000.0, tz=timezone.utc), |
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.
@@ -615,8 +615,6 @@ filterwarnings = [ | |||
"ignore:unclosed <socket.socket", | |||
# Remove this in a future release of PySpark. | |||
"ignore:distutils Version classes are deprecated. Use packaging.version instead.", | |||
"ignore:datetime.datetime.utcnow\\(\\) is deprecated and scheduled for removal in a future version.", |
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.
huh, not sure where this went, theres no references in the codebase
https://github.com/search?q=repo%3Aapache%2Ficeberg-python%20utcnow&type=code
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.
it might be used in one of the dependency packages, but we don't need to filter the warning in that case
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 for cleaning this up @hussein-awala Could you resolve the conflicts? Thanks!
closes: #1133