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

support quarter in postgres last day #333

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

seunghanhong
Copy link
Contributor

This is a:

  • bug fix PR with no breaking changes — please ensure the base branch is master
  • new functionality — please ensure the base branch is the latest dev/ branch
  • a breaking change — please ensure the base branch is the latest dev/ branch

Description & motivation

The existing macro last_day does not support quarter because postgres does not support quarter interval. I've updated to use 3 months when datepart is quarter, so the same sql can be used in the supported databases.

Checklist

  • I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)
    • BigQuery
    • Postgres
    • Redshift
    • Snowflake
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have added an entry to CHANGELOG.md

Copy link
Contributor

@clrcrl clrcrl left a comment

Choose a reason for hiding this comment

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

😎 nice one!

@clrcrl clrcrl merged commit 7c6de17 into dbt-labs:dev/0.7.0 Apr 16, 2021
clrcrl pushed a commit that referenced this pull request May 18, 2021
clrcrl pushed a commit that referenced this pull request May 18, 2021
clrcrl pushed a commit that referenced this pull request May 18, 2021
clrcrl pushed a commit that referenced this pull request May 18, 2021
clrcrl pushed a commit that referenced this pull request May 18, 2021
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.

2 participants