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

🤖 backported "datetime-diff function for redshift " #27067

Conversation

metabase-bot[bot]
Copy link
Contributor

@metabase-bot metabase-bot bot commented Dec 8, 2022

* Add redshift implementation

* Add failing tests

* Fix bigquery

* Formatting

* fix? set-param for redshift

* Replace literals for datetime-diff-time-zones-test

* Actually use fields

* Fix typo

* Rename dataset

* Add type/DateTimeWithTZ column, since redshift doesn't like type/DateTimeWithZoneOffset

* Cast to timestamp for week diff

* Revert "fix? set-param for redshift"

This reverts commit 235f3ac.

* Fix leap years

* Remove redundant date-trunc

* Formatting

* Fix mismatched types

* Fix extract

* Add comment for why redshift needs an implementation

Co-authored-by: Ngoc Khuat <qn.khuat@gmail.com>
@metabase-bot metabase-bot bot enabled auto-merge (squash) December 8, 2022 10:31
@calherries calherries requested review from a team and removed request for a team December 8, 2022 10:44
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Base: 64.36% // Head: 64.36% // No change to project coverage 👍

Coverage data is based on head (afc85ed) compared to base (9913e28).
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-x.45.x   #27067   +/-   ##
===============================================
  Coverage           64.36%   64.36%           
===============================================
  Files                3167     3167           
  Lines               93014    93014           
  Branches            11791    11791           
===============================================
  Hits                59869    59869           
  Misses              28410    28410           
  Partials             4735     4735           
Flag Coverage Δ
back-end 85.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@metabase-bot metabase-bot bot merged commit df8b912 into release-x.45.x Dec 9, 2022
@metabase-bot metabase-bot bot deleted the backport-407d83cb314d75427652a51a029723a1b0b68f8b branch December 9, 2022 12:38
calherries added a commit that referenced this pull request Dec 14, 2022
calherries added a commit that referenced this pull request Jan 5, 2023
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.

None yet

1 participant