Skip to content
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

chore: Replace deprecated temporal methods #229

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

snmvaughan
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

For builds that fail when there are deprecated warnings, this eliminates build failures.

What changes are included in this PR?

Replaces deprecated methods with equivalent implementations.

How are these changes tested?

Tested locally

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.32%. Comparing base (b0234a6) to head (ac90b86).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #229   +/-   ##
=========================================
  Coverage     33.32%   33.32%           
  Complexity      769      769           
=========================================
  Files           107      107           
  Lines         37037    37037           
  Branches       8106     8106           
=========================================
+ Hits          12341    12342    +1     
  Misses        22098    22098           
+ Partials       2598     2597    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@viirya viirya merged commit aa6ddc5 into apache:main Mar 28, 2024
29 checks passed
@viirya
Copy link
Member

viirya commented Mar 28, 2024

Merged. Thanks.

@@ -178,7 +178,7 @@ fn pre_timestamp_cast(array: ArrayRef, timezone: String) -> ArrayRef {
let datetime = as_datetime::<TimestampMicrosecondType>(value).unwrap();
let offset = tz.offset_from_utc_datetime(&datetime).fix();
let datetime = datetime + offset;
datetime.timestamp_micros()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it this deprecated? I saw only timestamp_nanos is deprecated?

snmvaughan added a commit to snmvaughan/arrow-datafusion-comet that referenced this pull request Apr 4, 2024
* chore: Handle deprecation of timestamp_micros()

* chore: Handle deprecation of seconds()

---------

Co-authored-by: Steve Vaughan Jr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants