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

feat(api): support quarterly truncation #9715

Merged
merged 8 commits into from
Jul 29, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Jul 29, 2024

Adds support for quarterly date and timestamp truncate. Closes #9714.

@cpcloud cpcloud added the feature Features or general enhancements label Jul 29, 2024
@cpcloud cpcloud changed the title quarterly trunc feat(api): support quarterly truncation Jul 29, 2024
Copy link
Contributor

ACTION NEEDED

Ibis follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message.

Please update your PR title and description to match the specification.

@@ -97,23 +96,6 @@ def mapper(df, cases, results, default):

return cls.partitionwise(mapper, kwargs, name=op.name, dtype=dtype)

@classmethod
def visit(cls, op: ops.TimestampTruncate | ops.DateTruncate, arg, unit):
Copy link
Member Author

Choose a reason for hiding this comment

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

This method was entirely duplicated.

@cpcloud cpcloud added the timestamps Issues related to the timestamp API label Jul 29, 2024
@cpcloud cpcloud requested review from jcrist and gforsyth July 29, 2024 20:25
@cpcloud cpcloud added the ci-run-cloud Add this label to trigger a run of Bigquery and Snowflake in CI label Jul 29, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of Bigquery and Snowflake in CI label Jul 29, 2024
Copy link
Member

@gforsyth gforsyth left a comment

Choose a reason for hiding this comment

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

:shipit:

@gforsyth gforsyth merged commit 75b31c2 into ibis-project:main Jul 29, 2024
90 checks passed
@cpcloud cpcloud deleted the quarterly-trunc branch July 29, 2024 20:59
@cpcloud cpcloud added this to the 9.3 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements timestamps Issues related to the timestamp API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarterly truncation no longer allowed in backends.sql.compilers.base.visit_TimestampTruncate
2 participants